Interface NetClientManager

All Superinterfaces:
NetworkApplication, Runnable
All Known Implementing Classes:
DTLSClientManager, PlainTCPClientManager, PlainUDPClientManager, TCPClientManager, TLSClientManager, UDPClientManager

public interface NetClientManager extends NetworkApplication
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 Details

    • connection

      Creates a new connection instance based on the given parameters to be managed by this NetClientManager.

      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 the onError callback of the new connection instead