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

# connectAwait

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

Suspending version of method io.vertx.core.net.NetClient.connect

### Parameters

`port` - the port

`host` - the host

Return

NetSocket

NOTE: This function has been automatically generated from io.vertx.core.net.NetClient using Vert.x codegen.

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

Suspending version of method io.vertx.core.net.NetClient.connect

### Parameters

`port` - the port

`host` - the host

`serverName` - the SNI server name

Return

NetSocket

NOTE: This function has been automatically generated from io.vertx.core.net.NetClient using Vert.x codegen.

`suspend fun NetClient.connectAwait(remoteAddress: SocketAddress): NetSocket`

Suspending version of method io.vertx.core.net.NetClient.connect

### Parameters

`remoteAddress` - the remote address

Return

NetSocket

NOTE: This function has been automatically generated from io.vertx.core.net.NetClient using Vert.x codegen.

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

Suspending version of method io.vertx.core.net.NetClient.connect

### Parameters

`remoteAddress` - the remote address

`serverName` - the SNI server name

Return

NetSocket

NOTE: This function has been automatically generated from io.vertx.core.net.NetClient using Vert.x codegen.