Class NetworkConfig

java.lang.Object
it.polimi.ingsw.gc14.Network.NetworkConfig

public final class NetworkConfig extends Object
Shared network constants used by both server and client components.
  • Field Details

    • RMI_PORT

      public static final int RMI_PORT
      Port on which the RMI registry listens.
      See Also:
    • TCP_PORT

      public static final int TCP_PORT
      Port on which the TCP game server listens.
      See Also:
    • HEARTBEAT_PORT

      public static final int HEARTBEAT_PORT
      Port on which the TCP heartbeat server listens.
      See Also:
    • SILENCE_THRESHOLD_MS

      public static final long SILENCE_THRESHOLD_MS
      Milliseconds of silence before a client is considered disconnected.
      See Also:
    • KEEPALIVE_INTERVAL_MS

      public static final long KEEPALIVE_INTERVAL_MS
      Milliseconds between keep-alive pings sent by the client.
      See Also:
    • MIN_PLAYERS

      public static final int MIN_PLAYERS
      Minimum number of players required to start a game.
      See Also:
    • MAX_PLAYERS

      public static final int MAX_PLAYERS
      Maximum number of players allowed in a game.
      See Also:
  • Constructor Details

    • NetworkConfig

      private NetworkConfig()