| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the client.
|
NetClient |
connect(int port,
String host,
Handler<AsyncResult<NetSocket>> connectHandler)
Open a connection to a server at the specific
port and host. |
isMetricsEnabledNetClient connect(int port, String host, Handler<AsyncResult<NetSocket>> connectHandler)
port and host.
host can be a valid host name or IP address. The connect is done asynchronously and on success, a
NetSocket instance is supplied via the connectHandler instance
port - the porthost - the hostvoid close()
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.
Copyright © 2015. All rights reserved.