TcpListener.onAccept
Set the accept callback.
Fires when a new client connection is accepted. The clientHandle is caller-owned — you must call TcpConnection.adopt() to take ownership, or close it via closesocket. Thread affinity: event loop thread only. Non-reentrant.
Parameters
callback | Callback invoked when a new connection is accepted. |