cmpppack.h
来自「用c/c++实现的一个CMPP API」· C头文件 代码 · 共 61 行
H
61 行
/*************************************************************************** Copyright : 2002, ASPIRE TECHNOLOGIES (SHENZHEN) LTD. Program ID : cmpppack.h Description : cmpppack 全局函数的声明头文件 Version : cmppapi 1.5 Modification Log: DATE AUTHOR DESCRIPTION -------------------------------------------------------------------------- 2002-11-25 chenggang Create***************************************************************************/#include "cmppapi.h"/************************************************************************ Function ID: nCmppDecode Description: CMPP协议的解析函数 Input Param: unsigned char* DecodeStr int nLen Output Param: recCmppPck* prCmppPck Return: int 0 success -1 input para error -2 input nLen not equal DeCodestr len -3 CmdId error -4 verify content of struct recCmppPck fail *************************************************************************/int nCmppDecode(unsigned char* DecodeStr, int nLen, recCmppPck* prCmppPck);/************************************************************************ Function ID: nDeliverReceiptDecode Description: CMPP协议的DeliverReceipt content 解析函数 Input Param: char* psMsgContent Output Param: recCmppReceiptBody* prCmppReceipt Return: int 0 success -1 input para error -2 input Len error*************************************************************************/int nDeliverReceiptDecode(unsigned char* psMsgContent, recCmppReceiptBody* prCmppReceipt, int nLen);/************************************************************************ Function ID: nCmppDecode Description: CMPP协议的组包函数 Input Param: recCmppPck* prCmppPck Output Param: unsigned char* DecodeStr int* pnLen Return: int 0 success -1 input para error -2 input nLen not equal DeCodestr len -3 CmdId error -4 verify content of struct recCmppPck fail *************************************************************************/int nCmppEncode(recCmppPck* prCmppPck, unsigned char* DecodeStr, int* pnLen);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?