TcpListener.onError

void onError(ListenerErrorCallback callback) @property @trusted

Set the error callback for accept failures.

Fires when an accept operation fails. The listener remains usable after transient errors. Non-reentrant. Thread affinity: event loop thread only.

Parameters

callbackCallback invoked when an accept operation fails.