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

📄 cmppconstants.java

📁 基于中国网通cngp2.0开发的一个java网关源代码。大家多多公开SP类的网关程序哦
💻 JAVA
字号:
package cn.netjava.cngpclient.connection;

/**
 * 通信命令字常量定义
 * 中国网通短信网关客户端--蓝杰实训项目
 * @author www.NetJava.cn
 *
 */
interface CmppConstants {
	static final int Cmpp_Nack_Resp = 0x80000000; // 未知错误应答

	static final int Cmpp_Logout = 0x00000006; // 登陆退出请求

	static final int Cmpp_Logout_Resp = 0x80000006; // 登陆退出请求应答

	static final int Cmpp_Login = 0x00000001;

	static final int Cmpp_Login_Resp = 0x80000001; // 登陆请求应答

	static final int Cmpp_Submit = 0x00000002; // 提交请求

	static final int Cmpp_Submit_Resp = 0x80000002; // 提交请求应答

	static final int Cmpp_Deliver = 0x00000003;// 下发请求

	static final int Cmpp_Deliver_Resp = 0x80000003; // 下发请求应答

	static final int Cmpp_Active = 0x00000004; // 活动测试请求

	static final int Cmpp_Active_Resp = 0x80000004; // 活动测试请求应答

	/***************************************************************************
	 * cngp协议中返回的命令状态码定义
	 */
	static final int success = 0x00000000; // 正确

	static final int error = 0x00000001; // 其他错误

	static final int error_msg_length = 0x00000002; // 不合法的消息长度

	static final int error_command_id = 0x00000003; // 不能识别的命令

	static final int error_synchronization = 0x00000004; // 同步错误

	static final int error_msg_structure = 0x00000005; // 消息结构错

	static final int error_id = 0x00000010; // 不合法的ID

	static final int error_attestation = 0x00000011; // 不合法的认证

	static final int error_bind_type = 0x00000012; // 不合法的邦定类型

	static final int success_bind = 0x00000013; // 已正确BIND

	static final int error_overconnection = 0x00000014; // 已超过最大连接数

	static final int error_bind = 0x00000015; // 尚未正确BIND

	static final int error_version = 0x00000016; // 不支持的版本

	static final int error_msg_mode = 0x00000020; // 不合法的消息模式

	static final int error_data_coding = 0x00000021; // 不合法的数据编码

	static final int error_service_type = 0x00000022; // 不合法的服务类型

	static final int error_fee_type = 0x00000023; // 不合法的计费类型

	static final int error_date_format = 0x00000024; // 不合法的日期格式

	static final int error_too_long = 0x00000026; // 短消息过长

	static final int error_msisdn = 0x00000027; // 不合法的MSISDN

	static final int error_param = 0x00000028; // 不合法的参数

	static final int error_none_dest = 0x00000029; // 没有目的地址

	static final int error_none_purview = 0x0000002A; // 没有权限

	static final int error_unfound_route = 0x0000002B; // 找不到路由

	static final int error_system = 0x0000002C; // 系统错误

	static final int error_info_fee = 0x0000002D; // 信息费过大

	static final int error_timing = 0x0000002E; // 定时发送时间太长

	static final int error_send_overflow = 0x0000002F; // 发送队列满

	static final int error_src_addr = 0x00000030; // 不合法的源地址

	static final int error_fee_user_type = 0x00000031; // 不合法的计费用户类型

	static final int error_fee_user = 0x00000032; // 不合法的计费用户

	static final int error_msg_id = 0x00000040; // 不合法的消息标识

	static final int error_repeat_seqcno = 0x00000041; // 包序号重复

	static final int error_overflow_seqcno = 0x00000042; // 包序号越界

	// 其他常量:
	static final String READSTRINGERROR = "readStringError";

	static final byte MpcuBindMpcaType = 2;

	/*
	 * static final String MBFM_MBCA_digest=new String("66") ; static final
	 * String MBFM_MPP_digest=new String("66") ;
	 */

	// define for connection type
	static final byte SERVER = 0;

	static final byte CLIENT = 1;

	static final byte[] ZEROAUTH = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
			.getBytes();
	// ******************************************************************************
}

⌨️ 快捷键说明

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