A TCP/SSL 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.
If an instance is instantiated from an event loop then the handlers of the instance will always be called on that same event loop. If an instance is instantiated from some other arbitrary Java thread (i.e. when using embedded) then an event loop will be assigned to the instance and used when any of its handlers are called.
Instances of this class are thread-safe.
Anything
NetClient
ClientBase
NetworkBase
Basic
Identifiable
Object
Anything
no subtypes hierarchy
Initializer |
NetClient(NetClient delegate) |
Inherited Attributes |
Attributes inherited from: ClientBase |
Attributes inherited from: NetworkBase |
Attributes inherited from: Object hash , string |
Methods | |
connect | shared Promise<NetSocket> connect(Integer port, String? host = null) |
Inherited Methods |
Methods inherited from: Object equals |