?? cmppconstants.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 + -