suspend fun NetClient.connectAwait(port: Int, host: String): NetSocket
Open a connection to a server at the specific port and host.
Returna
reference to this, so the API can be used fluently *
suspend fun NetClient.connectAwait(port: Int, host: String, serverName: String): NetSocket
Open a connection to a server at the specific port and host.
serverName
- the SNI server name
Returna
reference to this, so the API can be used fluently *
suspend fun NetClient.connectAwait(remoteAddress: SocketAddress): NetSocket
Open a connection to a server at the specific remoteAddress.
remoteAddress
- the remote address
Returna
reference to this, so the API can be used fluently *
suspend fun NetClient.connectAwait(remoteAddress: SocketAddress, serverName: String): NetSocket
Open a connection to a server at the specific remoteAddress.
remoteAddress
- the remote address
serverName
- the SNI server name
Returna
reference to this, so the API can be used fluently *