TCPListener

Listen for incoming connections and pass clients to a handler function.

More...
@safe
struct TCPListener (
API
) {}

Constructors

this
this(string host, ushort port)

Instantiate a TCPListener object.

Members

Functions

listen
void listen(API api, int maxQueuedConnections)

Listen for client requests.

Detailed Description

Template Parameters

API = The class containing the methods for the server to execute.

Meta