TCPListener.listen

Listen for client requests.

listen will call the specified handler function in a new thread to handle each client it accepts.

More...
struct TCPListener(API)
package
void
listen
(
alias handler
)
(
API api
,)

Parameters

api API

An instantiated class with the methods to execute.

maxQueuedConnections int

The maximum number of connections to backlog before refusing connections.

Detailed Description

Template Parameters

handler = The handler function to call when a client connects.

Meta