Socket created by TcpListenSocket which maintains a connection to a TCP client. Capable of sending/receiving packet data from/to client. More...
#include <tcpserver.h>
Public Member Functions | |
TcpServer () | |
Constructor. | |
virtual | ~TcpServer () |
Destructor, shuts down socket. | |
int | InitializeSocket (const TcpListenSocket &socket) |
This function waits/listens for a client to make a connection to the server socket using a listen socket. | |
IP4Address | GetClientAddress () const |
Friends | |
class | TcpListenSocket |
Socket created by TcpListenSocket which maintains a connection to a TCP client. Capable of sending/receiving packet data from/to client.
TCP Connections are bi-directional (you can send and receive on the socket).
Definition at line 59 of file tcpserver.h.
TcpServer::TcpServer | ( | ) |
Constructor.
Definition at line 54 of file tcpserver.cpp.
TcpServer::~TcpServer | ( | ) | [virtual] |
Destructor, shuts down socket.
Definition at line 64 of file tcpserver.cpp.
IP4Address CxUtils::TcpServer::GetClientAddress | ( | ) | const [inline] |
Definition at line 66 of file tcpserver.h.
int TcpServer::InitializeSocket | ( | const TcpListenSocket & | socket ) |
This function waits/listens for a client to make a connection to the server socket using a listen socket.
If the listen socket was created as blocking, this function will block. Otherwise it will wait as long as the maximum receive timeout.
socket | The socket to listen on. |
Definition at line 83 of file tcpserver.cpp.
friend class TcpListenSocket [friend] |
Definition at line 61 of file tcpserver.h.