ConnectStatus — success, or a ConnectError payload with the
reason and the captured OS error code.
ConnectStatus connect(ref EventLoop loop, scope const(char)[] host, ushort port, CancelToken cancel = CancelToken
.invalid) @trusted nothrowStart a non-blocking connection attempt.
loop | Event loop to register with. |
host | Host name or IP address to connect to. |
port | Port number to connect to. |
cancel | Optional cancellation token. |
ConnectStatus — success, or a ConnectError payload with the
reason and the captured OS error code.