Package org.omegazero.net.client
Interface NetClientManager
- All Superinterfaces:
NetworkApplication,Runnable
- All Known Implementing Classes:
DTLSClientManager,PlainTCPClientManager,PlainUDPClientManager,TCPClientManager,TLSClientManager,UDPClientManager
Represents a client connection manager. This application is responsible for managing any number of outgoing connections to a remote server.
Outgoing connections are created using connection(ConnectionParameters).
-
Method Summary
Modifier and TypeMethodDescriptionconnection(ConnectionParameters params) Creates a new connection instance based on the given parameters to be managed by thisNetClientManager.Methods inherited from interface org.omegazero.net.common.NetworkApplication
close, init, run, start
-
Method Details
-
connection
Creates a new connection instance based on the given parameters to be managed by thisNetClientManager.SocketConnection.connect(int)will need to be called on the returned connection instance to initiate the connection.- Parameters:
params- Parameters for this connection- Returns:
- The new connection instance
- Throws:
IOException- If an error occurs while creating the connection. Subsequent network errors (for example, because the server refused the connection) are usually passed to theonErrorcallback of the new connection instead
-