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

Extensions for io.vertx.core.net.NetClient

connectAwait

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

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

suspend fun NetClient.connectAwait(remoteAddress: SocketAddress): NetSocket
suspend fun NetClient.connectAwait(remoteAddress: SocketAddress, serverName: String): NetSocket

Open a connection to a server at the specific remoteAddress.