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

📄 constants.java

📁 一个实现网络会议的软件.包含三个包.其中一个包需JMF的支持.
💻 JAVA
字号:
package mediaPackage;

/**
 * This class has all the constants used by client and server
 * 
 * @author Naizheng Bian
 * @version 1.0
 */
public class Constants {

	public static final int FILEPORT=19860;
    /** the constant indicating that the category is user */
    public static final int USER = 0;
    /** the constant indicating that the category is presenter */
    public static final int PRESENTER = 1;
    /** the constant indicating neither yes nor no */
    public static final int NONE = 0;
    /** the constant indicating NO */
    public static final int NO = 1;
    /** the constant indicating YES */
    public static final int YES = 2;	
    /** display is currently public chat */
    public static final int PUBLIC_CHAT = 0;
    /** display is currently private chat.*/
    public static final int PRIVATE_CHAT = 10;
    
    /** indicating a new login */
    public static final int LOGIN_USER = 1;
    /** indicating a logout */
    public static final int LOGOUT_USER = 2;

    /**  the constant indicating that the login has failed */
    public static final int FAIL_LOGIN = -1;
    /**  the constant indicating that the password is valid */
    public static final int PASS_LOGIN = -2;

    /**  the Source port on which the server listens for Audio */    
    public static final int AUDIO_SOURCE_PORT = 4190;
    /**  the destination port on which the relay is done */
    public static final int AUDIO_DESTINATION_PORT = 4200;

    /**  the port listening to new connections*/
    public static final int LISTEN_PORT = 4576;
    /**  Audio port to send audio on different channels*/
    public static final int AUDIO_PORT = 2206;
	
    /**  the port to upload file */
    public static final int FILE_UPLOAD_PORT = 2208;

    /**  indicating a Yes*/
    public static final int SAY_YES = 3;
    /**  indicating a No */
    public static final int SAY_NO = 4;

    /**  indicating a Raise Hand */
    public static final int RAISE_HAND = 5;
    /**  indicating a Lower Hand */
    public static final int LOWER_HAND = 6;

    /**  indicating the start of session*/
    public static final int START_SESSION = 7;
    public static final int STOP_SESSION = 37;
	
    /**  indicating updation of content manager*/
    public static final int UPDATE_CONTENT_MANAGER = 8;
    /**  the request code indicating a change in Presenter URL*/
    public static final int URL_CHANGED = 9;

    /** indicating a change in Mic availaible*/
    public static final int NEXT_MIC = 21;
    /**  lock Mic*/
    public static final int LOCK_MIC = 55;
    /**  unlock Mic*/
    public static final int UNLOCK_MIC = 56;
	
    /** indicating the presenter clear all yes/no */
    public static final int CLEAR_YES_NO = 30;
    /** indicating the presenter lower all hands */
    public static final int LOWER_ALL_HANDS = 31;
	
    /**  indicating a User Step IN/OUT*/
    public static final int STEP_IN_OUT = 18;
   

    /**  indicating a Chat Message*/
    public static final int CHAT_MESSAGE = 20;

    /**  indicating maximum number*/
    public static final int MAX_CONNECTION_TRIES = 10;

    /**  indicates a sleep time*/
    public static final int SLEEP_TIME = 3000;

    /**  the Feedback index for Pace too fast*/    
    public static final int PACE_TOO_FAST = 10;
    /**  the Feedback index for Pace Just Right*/    
    public static final int PACE_JUST_RIGHT = 11;
    /**  the Feedback index for Pace too slow*/    
    public static final int PACE_TOO_SLOW = 12;
    /**  the Feedback index for Pace No Opinion*/    
    public static final int PACE_NO_OPINION = 13;

    /**  the Feedback index for Clarity clear*/        
    public static final int CLARITY_CLEAR = 14;
    /**  the Feedback index for Clarity Just Right*/    
    public static final int CLARITY_JUST_RIGHT = 15;
    /**  the Feedback index for Clarity Confusing*/    
    public static final int CLARITY_CONFUSING = 16;
    /**  the Feedback index for Clarity No Opinion*/    
    public static final int CLARITY_NO_OPINION = 17;
	
    /**  the URL Indicating the location  */
    public static final String SERVER_URL = "file:\\E:/slides/";	
    /**  the URL Indicating the actual location */
    public static final String SERVER_STORE_LOCATION = "D:/slides/";

    /**  the label for start speaking button*/
    public static final String START_SPEAKING = "Start Speaking";
    /**  the label for stop speaking button */
    public static final String STOP_SPEAKING = "Stop Speaking";

    /** indicating a end of file*/
    public static final int EOF_INT = -1;

    /**  the maximum number of login try for the user */
    public static final int MAX_LOGIN_TRIES = 3;
	public static int namePort=29860;


}

⌨️ 快捷键说明

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