UCommon
|
A generic tcp server class. More...
#include <socket.h>
Public Member Functions | |
TCPServer (const char *address, const char *service, unsigned backlog=5) | |
Create and bind a tcp server. |
A generic tcp server class.
This saves the service id tag so that it can be propagated.
ucommon::TCPServer::TCPServer | ( | const char * | address, |
const char * | service, | ||
unsigned | backlog = 5 |
||
) |
Create and bind a tcp server.
This mostly is used to preserve the service tag for TCP Socket when derived from a server instance.
service | tag to use. |
address | of interface to bind or "*" for all. |
backlog | size for pending connections. |