vertx / io.vertx.reactivex.core.net / NetClient / rxConnect

rxConnect

open fun rxConnect(port: Int, host: String): Single<NetSocket>

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

host can be a valid host name or IP address. The connect is done asynchronously and on success, a io.vertx.reactivex.core.net.NetSocket instance is supplied via the connectHandler instance

Parameters

port - the port

host - the host

Return

open fun rxConnect(port: Int, host: String, serverName: String): Single<NetSocket>

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

host can be a valid host name or IP address. The connect is done asynchronously and on success, a io.vertx.reactivex.core.net.NetSocket instance is supplied via the connectHandler instance

Parameters

port - the port

host - the host

serverName - the SNI server name

Return

open fun rxConnect(remoteAddress: SocketAddress): Single<NetSocket>

Open a connection to a server at the specific remoteAddress.

The connect is done asynchronously and on success, a io.vertx.reactivex.core.net.NetSocket instance is supplied via the connectHandler instance

Parameters

remoteAddress - the remote address

Return

open fun rxConnect(remoteAddress: SocketAddress, serverName: String): Single<NetSocket>

Open a connection to a server at the specific remoteAddress.

The connect is done asynchronously and on success, a io.vertx.reactivex.core.net.NetSocket instance is supplied via the connectHandler instance

Parameters

remoteAddress - the remote address

serverName - the SNI server name

Return