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

📄 shareconst.java

📁 B/S结构邮件系统的源码
💻 JAVA
字号:
package Shared;public class ShareConst {		public static final byte CONST_ACTIVE_TEST_START = 3; //测试包测试开始次数	public static final byte CONST_ACTIVE_TEST_END = 6; //测试包测试开始次数		public static final int  MSGHDRLEN = 28; //信息包头大小	public static final int  MAXMSGSIZE = 2048;//信息最大数	//信息包类型	public static final byte CODEC_CMD = 0; //命令包	public static final byte CODEC_RESP = 1;	//回应包	public static final byte CODEC_TRANS = 2;	//传送包	public static final byte CODEC_NEED_DATA = 3;	//包长度不够	public static final byte CODEC_ERR = 4;		//包格式错误		//命令类型	public static final byte CMD_CONNECT = 1;		//连接	public static final byte CMD_TEST = 8;			//测试		public static final byte CMD_HEXINFO = (byte)0xE0;  	public static final byte CMD_STRINFO = (byte) 0xE1;	public static final byte CMD_CLIENTINFO = (byte) 0xE4;		public static final byte CMD_MOD_TEST = (byte) 0xE6;	public static final byte CMD_ERR = (byte)0xF1;		// 错误	public static final byte CMD_RESP = (byte)0xFF; 	//回应标记//模块编号	public transient final static byte MOD_HUB  = 0;	public transient final static byte MOD_CMPP = 1;        // SAG_移动短信接入	public transient final static byte MOD_USSD = 2;	public transient final static byte MOD_SGIP = 3;	public transient final static byte MOD_SMGP = 4;	public transient final static byte MOD_OMS = 5;	public transient final static byte MOD_MOBILE = 6;	public transient final static byte MOD_HOSP = 7;	public transient final static byte MOD_PROVISION = 8;	public transient final static byte MOD_CMD = 9;	public transient final static byte MOD_NULL = (byte)0xFF;	//错误类型		public static final byte STA_SUCCESS = 0x0;			//成功	public static final byte STA_TIMEOUT=0x1;			//超时	public static final byte STA_BUSY=0x2;				//系统忙	public static final byte STA_IF_DOWN=0x3;			//接口不通	public static final byte STA_MEM_ALLOC_FAILED=0x4;	//内存分配失败	public static final byte STA_SEND_FAILED=0x5;		//数据接收失败	public static final byte STA_SYSTEM_ERR=0x6;	    //系统错误	public static final byte STA_QOSMAX = 0x7;       	// 阀值上限					public static final byte STA_USRPWDERR=0x8;        	//用户密码不正确	public static final byte STA_APM_NONEXIST=0x9;		//APM不存在	public static final byte STA_MSGINVALID=0xB;       	// 消息包内容无效(格式不正确)	public static final int STA_UNKNOWN=0x0FF;			//未知错误}

⌨️ 快捷键说明

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