TcpListener.onConnection

void onConnection(ConnectionCallback callback) @property @trusted

Set the high-level connection callback.

Fires when a new connection is established and wrapped into a TcpConnection. The connection ref is valid for the callback duration. Thread affinity: event loop thread only. Non-reentrant.

Parameters

callbackCallback invoked when a new connection is established and wrapped.