vertx / io.vertx.rxjava.core.net / NetClient

# NetClient

`open class NetClient : Measured`

A TCP client.

Multiple connections to different servers can be made using the same instance.

This client supports a configurable number of connection attempts and a configurable delay between attempts.

NOTE: This class has been automatically generated from the io.vertx.core.net.NetClient non RX-ified interface using Vert.x codegen.

### Constructors

<init> | `NetClient(delegate: NetClient)`

### Properties

__TYPE_ARG | `static val __TYPE_ARG: TypeArg<NetClient>`

### Functions

close | `open fun close(): Unit` Close the client. Any sockets which have not been closed manually will be closed here. The close is asynchronous and may not complete until some time after the method has returned.
connect | `open fun connect(port: Int, host: String, connectHandler: Handler<AsyncResult<NetSocket>>): NetClient` `open fun connect(port: Int, host: String, serverName: String, connectHandler: Handler<AsyncResult<NetSocket>>): NetClient` 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.rxjava.core.net.NetSocket instance is supplied via the `connectHandler` instance `open fun connect(remoteAddress: SocketAddress, connectHandler: Handler<AsyncResult<NetSocket>>): NetClient` `open fun connect(remoteAddress: SocketAddress, serverName: String, connectHandler: Handler<AsyncResult<NetSocket>>): NetClient` Open a connection to a server at the specific `remoteAddress`. The connect is done asynchronously and on success, a io.vertx.rxjava.core.net.NetSocket instance is supplied via the `connectHandler` instance
equals | `open fun equals(other: Any?): Boolean`
getDelegate | `open fun getDelegate(): NetClient`
hashCode | `open fun hashCode(): Int`
isMetricsEnabled | `open fun isMetricsEnabled(): Boolean` Whether the metrics are enabled for this measured object
newInstance | `open static fun newInstance(arg: NetClient): NetClient`
rxConnect | `open fun rxConnect(port: Int, host: String): Single<NetSocket>` `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.rxjava.core.net.NetSocket instance is supplied via the `connectHandler` instance `open fun rxConnect(remoteAddress: SocketAddress): Single<NetSocket>` `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.rxjava.core.net.NetSocket instance is supplied via the `connectHandler` instance
toString | `open fun toString(): String`