📄 protocal.java
字号:
package chat.tools;
/**
* <p>Title: </p>
*
* <p>Description: 此类为协议类</p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: zte</p>
*
* @author kwatt
* @version 1.0
*/
public class Protocal {
public static final String MSG_LOGIN="1"; //用户登陆时
public static final String MSG_MESSAGE="2"; //用户发消息时
public static final String MSG_EXIT="3";
public static final String MSG_USERLIST="4"; //向服务器申请用户列表时
public static final String MSG_LOGIN_MSG="5"; //用户登陆后,当又有新用户登陆时
public static final String MSG_LOGOUT_MSG="6"; //一个用户下线要通知服务器时
public static final String MSG_MESSAGE_ALL="7"; //向所有的用户发消息时
public static final String MSG_LOGOUT="8"; //有用户下线时通知别的用户此用户下线
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -