vertx / io.vertx.kotlin.core.net / io.vertx.core.net.NetClient / connectAwait

connectAwait

suspend fun NetClient.connectAwait(port: Int, host: String): NetSocket

Open a connection to a server at the specific port and host.

Parameters

port - the port

host - the host

connectHandler -

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.

Parameters

port - the port

host - the host

serverName - the SNI server name

connectHandler -

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.

Parameters

remoteAddress - the remote address

connectHandler -

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.

Parameters

remoteAddress - the remote address

serverName - the SNI server name

connectHandler -

Returna
reference to this, so the API can be used fluently *