View Javadoc

1   /*
2   @See License.txt@
3    */
4   
5   package spellcast.net;
6   
7   /***
8    * This class contains the game constants that are global and
9    * do not belong in a particular class.
10   *
11   * @author Barrie Treloar
12   */
13  public interface NetConstants
14  {
15      /***
16       * The default port for accepting connections to the spellcast
17       * server.
18       */
19      public static final int SPELLCAST_NET_DEFAULT_PORT = 19165;
20  
21      /***
22       * The port used for listening for ServerListRequest messages.
23       * Note: Only one server for a given IP can use this port. The
24       * other server will not be responding to ServerListRequest messages.
25       */
26      public static final int SPELLCAST_NET_SERVERLIST_PORT = 19160;
27  
28      /***
29       * The InetAddress used for broadcasting messages.
30       * This address is 255.255.255.255.
31       */
32      public static final String SPELLCAST_NET_BROADCAST_INETADDRESS = "255.255.255.255";
33  }