📄 cmppmessage.h
字号:
// 标准端口号
#define CMPP_PORT 7890
#define CMPP_Connect 0x00000001
#define CMPP_Connect_REP 0x80000001
#define CMPP_Terminate 0x00000002
#define CMPP_Submit 0x00000004
#define CMPP_Terminate_REP 0x80000002
#define CMPP_Submit_REP 0x80000004
#define CMPP_Deliver 0x00000005
#define CMPP_Deliver_REP 0x80000005
#define CMPP_Query 0x00000006
#define CMPP_Cancel 0x00000007
#define CMPP_Query_REP 0x80000006
#define CMPP_Cancel_REP 0x80000007
#define CMPP_Active_Test 0x00000008
#define CMPP_Active_Test_REP 0x80000008
#define CMPP_Fwd 0x00000009
#define CMPP_Fwd_REP 0x80000009
//********************************************************
//Add by Milon Lee, For CMPP V1.2, 2001/06/08
#define CMPP_MT_ROUTE 0x00000010
#define CMPP_MT_ROUTE_REP 0x80000010
#define CMPP_MO_ROUTE 0x00000011
#define CMPP_MO_ROUTE_REP 0x80000011
#define CMPP_GET_ROUTE 0x00000012
#define CMPP_GET_ROUTE_REP 0x80000012
//网关与汇接节点间的消息类型
#define CMPP_MT_ROUTE_UPDATE 0x00000013
#define CMPP_MT_ROUTE_UPDATE_REP 0x80000013
#define CMPP_MO_ROUTE_UPDATE 0x00000014
#define CMPP_MO_ROUTE_UPDATE_REP 0x80000014
#define CMPP_PUSH_MT_ROUTE_UPDATE 0x00000015
#define CMPP_PUSH_MT_ROUTE_UPDATE_REP 0x80000015
#define CMPP_PUSH_MO_ROUTE_UPDATE 0x00000016
#define CMPP_PUSH_MO_ROUTE_UPDATE_REP 0x80000016
typedef struct CMPP_Connect12
{
long Total_Length;
long Command_ID;
long Sequence_ID;
char Source_Addr[6];
char AuthenticatorICP[16];
unsigned char Version;
int Timestamp;
}CMPP_CONNECT12; //长度39子节
typedef struct CMPP_ConnectREP12
{
long Total_Length;
long Command_ID;
long Sequence_ID;
unsigned char Status;
char AuthenicatorISMG[16];
unsigned char Version;
}CMPP_ConnectRep12;//长度30子节
typedef struct CMPP_Submit12
{
long Total_Length;
long Command_ID;
long Sequence_ID;
__int64 Msg_id;
unsigned char PK_total;
unsigned char PK_number;
unsigned char Registered_Delivery;
unsigned char MSg_level;
char Service_id[10];
unsigned char Fee_UserType;
char Fee_terminal_id[21];
unsigned char TP_pid;
unsigned char TP_udhi;
unsigned char Msg_Fmt;
char Msg_src[6];
char FeeType[2];
char FeeCode[6];
char Valid_Time[17];
char At_Time[17];
char Src_terminal_id[21];
unsigned char DestUsr_tl;
char Dest_terminal_id[21];
unsigned char Msg_Length;
//char Msg_Content[140];
//char Reserve[8];
}CMPP_SUBMIT12; //长度151字节
typedef struct CMPP_SubmitREP12
{
long Total_Length;
long Command_ID;
long Sequence_ID;
__int64 Msg_Id;
unsigned char Result;
}CMPP_SUBMITREP12;//长度21子节
typedef struct CMPP_Deliver12
{
long Total_Length;
long Command_ID;
long Sequence_ID;
__int64 Msg_Id;
unsigned char Destnation_ID[21];
unsigned char Service[10];
unsigned char TP_pid;
unsigned char TP_udhi;
unsigned char Msg_Fmt; //54子节
char Srcterminal_id[21];
unsigned char Registered_Delivery;
unsigned char Msg_Length; //77
//char Msg_Content[140];
//char Reserve[8];
}CMPP_DELIVER12;
typedef struct CMPP_DeliverReport //状态报告
{
__int64 Msg_Id;
unsigned char Stat[7];
unsigned char SubmitTime[10];
unsigned char DoneTime[10];
unsigned char DestTerminalID[21];
long Sequence;
}CMPP_DELIVERREPORT;
typedef struct CMPP_DeliverForSubmit
{
long Total_Length;
long Command_ID;
long Sequence_ID;
char Msg_Id[8];
unsigned char Stat[7];
unsigned char Submit_Time[10];
unsigned char DoneTime[10];
unsigned char Destnation_ID[21];
int SMSC_sequence;
}CMPP_DeliverForSubmit;//长度72子节
typedef struct CMPP_DeliverREP12
{
long Total_Length;
long Command_ID;
long Sequence_ID;
__int64 Msg_Id;
unsigned char Result;
}CMPP_DELIVERREP12; //长度21字节
typedef struct CMPP_Active_Test12
{
long Total_Length;
long Command_ID;
long Sequence_ID;
}CMPP_ACTIVE_TEST12;//长度12
typedef struct CMPP_Cancel12
{
long Total_Length;
long Command_ID;
long Sequence_ID;
__int64 Msg_id;
}CMPP_Cancel12;//长度12
typedef struct CMPP_Active_TestREP12
{
long Total_Length;
long Command_ID;
long Sequence_ID;
unsigned char Success_Id;
}CMPP_ACTIVE_TESTREP12;//长度13
typedef struct CMPP_Terminate12
{
long Total_Length;
long Command_ID;
long Sequence_ID;
}CMPP_TERMINATE12;// 长度为12
typedef struct CMPP_TerminateREP12
{
long Total_Length;
long Command_ID;
long Sequence_ID;
}CMPP_TERMINATEREP12;//长度为12
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -