TcpListener.onAccept

void onAccept(AcceptCallback callback) @property @trusted

Set the accept callback.

Parameters

callbackCallback invoked when a new connection is accepted. Callback contract: clientHandle is caller-owned — the callback must either adopt it into a TcpConnection or close it. Fires on the event loop thread. Does not fire after dispose().