Coverage Summary for Class: NetworkConfig (it.polimi.ingsw.gc14.Network)

Class
NetworkConfig


 package it.polimi.ingsw.gc14.Network;
 
 /** Shared network constants used by both server and client components. */
 public final class NetworkConfig {
     /** Port on which the RMI registry listens. */
     public static final int  RMI_PORT            = 1099;
     /** Port on which the TCP game server listens. */
     public static final int  TCP_PORT            = 8080;
     /** Port on which the TCP heartbeat server listens. */
     public static final int  HEARTBEAT_PORT      = 8081;
     /** Milliseconds of silence before a client is considered disconnected. */
     public static final long SILENCE_THRESHOLD_MS  = 5_000;
     /** Milliseconds between keep-alive pings sent by the client. */
     public static final long KEEPALIVE_INTERVAL_MS = 3_000;
     /** Minimum number of players required to start a game. */
     public static final int  MIN_PLAYERS         = 2;
     /** Maximum number of players allowed in a game. */
     public static final int  MAX_PLAYERS         = 5;
 
     private NetworkConfig() {}
 }