⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constants.java

📁 J2ee中java网络编程的网络游戏lottery
💻 JAVA
字号:
package bingo.shared;public interface Constants {	// various constants for the game    public static final long ONE_SECOND = 1000;    public static final long FIVE_SECONDS = ONE_SECOND * 5;    public static final long TWENTY_SECONDS = ONE_SECOND * 20;    public static final long ONE_MINUTE = ONE_SECOND * 60;    public static final long FIVE_MINUTES = ONE_MINUTE * 5;    public static final int MAX_WOLF_CRIES = 3;	// this is the port number to which all information	// is sent. this is an arbitrarily chosen number    public static final int portNumber = 52596;	// when a message is sent to a multicast socket, it's	// sent to a particular group on that socket.	// a group is identified by an InetAddress which can be	// specified by a string of the form %d.%d.%d.%d	//	// the bingo game sends information to three groups.	// these inetaddresses are arbitrarily chosen based on nothing    public static final String BallListeningGroup = "230.0.0.1";    public static final String GameListeningGroup = "230.0.0.2";    public static final String PlayerListeningGroup = "230.0.0.3";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -