GlobalObjects
Loading...
Searching...
No Matches
tcp::ServerAcceptMessage Class Reference

A special Tcp message, with which the ServerAcceptReceiver can register a new Client. More...

#include <TcpMessage.h>

Inheritance diagram for tcp::ServerAcceptMessage:

Public Member Functions

 ServerAcceptMessage (SOCKET NewSocket)
 
virtual ~ServerAcceptMessage ()
 
void closeSocket ()
 
SOCKET getSocket ()
 
- Public Member Functions inherited from tcp::AbstractMessage
virtual ~AbstractMessage ()
 

Protected Member Functions

 ServerAcceptMessage ()
 
- Protected Member Functions inherited from tcp::AbstractMessage
 AbstractMessage ()
 

Private Member Functions

 ServerAcceptMessage (const ServerAcceptMessage &)
 
ServerAcceptMessageoperator= (const ServerAcceptMessage &)
 

Private Attributes

SOCKET m_ClientSocket
 

Detailed Description

A special Tcp message, with which the ServerAcceptReceiver can register a new Client.

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ ServerAcceptMessage() [1/3]

tcp::ServerAcceptMessage::ServerAcceptMessage ( )
protected

This constructor is not available.

◆ ServerAcceptMessage() [2/3]

tcp::ServerAcceptMessage::ServerAcceptMessage ( SOCKET NewSocket)

Constructor with parameter passing.

Parameters
[in]NewSocketThe new client socket.

◆ ~ServerAcceptMessage()

virtual tcp::ServerAcceptMessage::~ServerAcceptMessage ( )
virtual

Destructor.

◆ ServerAcceptMessage() [3/3]

tcp::ServerAcceptMessage::ServerAcceptMessage ( const ServerAcceptMessage & )
private

The copy constructor is not available.

Member Function Documentation

◆ closeSocket()

void tcp::ServerAcceptMessage::closeSocket ( )

Closes the client socket.

◆ getSocket()

SOCKET tcp::ServerAcceptMessage::getSocket ( )

Returns the client socket.

◆ operator=()

ServerAcceptMessage & tcp::ServerAcceptMessage::operator= ( const ServerAcceptMessage & )
private

The assignment operator is not available.

Member Data Documentation

◆ m_ClientSocket

SOCKET tcp::ServerAcceptMessage::m_ClientSocket
private

The new client socket.


The documentation for this class was generated from the following file: