Class ConnectedClient

java.lang.Object
za.co.wethinkcode.robots.server.networking.ConnectedClient

public class ConnectedClient extends Object
This class encapsulates all the behaviour of a single connected client
  • Constructor Details

  • Method Details

    • generateClientId

      public static ClientID generateClientId(World w, Socket s)
      Static method to generate a ClientID based on a World and Socket
      Parameters:
      w - the World the client is connecting to.
      s - the Socket the client is connected on
      Returns:
      a unique ClientID as a string.
    • getSocket

      public Socket getSocket()
    • getClientID

      public ClientID getClientID()