Function EventDriverSockets.cancelConnectStream
Aborts asynchronous connect by closing the socket.
This function may only invoked if the connection state is
ConnectionState
. 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.
Parameters
Name | Description |
---|---|
sock | Handle of the socket that is currently establishing a connection |