EventDriverSockets.cancelConnectStream

Aborts asynchronous connect by closing the socket.

This function may only invoked if the connection state is ConnectionState.connecting. It will cancel the connection attempt and guarantees that the connection callback will not be invoked in the future.

Note that upon completion, the socket handle will be invalid, regardless of the number of calls to addRef, and must not be used for further operations.

interface EventDriverSockets
@safe nothrow
void
cancelConnectStream

Parameters

sock StreamSocketFD

Handle of the socket that is currently establishing a connection

Meta