connect

abstract suspend fun connect(endpoint: SocketAddress, timeout: Long = 0)

Connects this channel.

Parameters

endpoint

The address to connect to

timeout

The timeout in milliseconds, or 0 for no timeout

Throws

if an I/O error occurs