Class TCPNetworkClientManager

java.lang.Object
marauroa.client.net.TCPNetworkClientManager
All Implemented Interfaces:
INetworkClientManagerInterface

public final class TCPNetworkClientManager extends Object implements INetworkClientManagerInterface
This is the basic implementation of a TCP network manager.
Author:
hendrik
  • Field Details

    • registered

      protected static boolean registered
      already registered?
  • Constructor Details

    • TCPNetworkClientManager

      public TCPNetworkClientManager(String host, int port) throws IOException
      Constructor that opens the socket on the marauroa_PORT and start the thread to receive new messages from the network.
      Parameters:
      host - the host where we connect to.
      port - the port of the server where we connect to.
      Throws:
      IOException
    • TCPNetworkClientManager

      public TCPNetworkClientManager(Proxy proxy, InetSocketAddress serverAddress) throws IOException
      Constructor that opens the socket on the marauroa_PORT and start the thread to receive new messages from the network.
      Parameters:
      proxy - proxy server and protocol to use
      serverAddress - the host and port where we connect to.
      Throws:
      IOException
  • Method Details