cmpp错误码
case ntohl(CMPP_CONNECT_RESP_tag.Status) of
0:
R_mem.Lines.Add('连接返回内容:状态=' + inttostr(ntohl(CMPP_CONNECT_RESP_tag.Status)) + '正确.');
1:
R_mem.Lines.Add('连接返回内容:状态=' + inttostr(ntohl(CMPP_CONNECT_RESP_tag.Status)) + '消息结构错.');
2:
R_mem.Lines.Add('连接返回内容:状态=' + inttostr(ntohl(CMPP_CONNECT_RESP_tag.Status)) + '非法源地址.');
3:
R_mem.Lines.Add('连接返回内容:状态=' + inttostr(ntohl(CMPP_CONNECT_RESP_tag.Status)) + '认证错.');
4:
R_mem.Lines.Add('连接返回内容:状态=' + inttostr(ntohl(CMPP_CONNECT_RESP_tag.Status)) + '版本太高.');
5:
R_mem.Lines.Add('连接返回内容:状态=' + inttostr(ntohl(CMPP_CONNECT_RESP_tag.Status)) + '其他错误.');
end;
*****************************
case ntohl(CMPP_SUBMIT_RESP_tag.Result) of
0:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + '正确.');
1:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + '消息结构错.');
2:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + '命令字错.');
3:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + '消息序号重复.');
4:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + '消息长度错.');
5:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + '资费代码错.');
6:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + '超过最大信息长.');
7:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + '业务代码错.');
8:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + '流量控制错.');
9:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + '本网关不负责服务此计费号码.');
10:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + 'Src_Id错误.');
11:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + 'Msg_src错误.');
12:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + 'Fee_terminal_Id错误.');
13:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + 'Dest_terminal_Id错误.');
14:
R_mem.Lines.Add('发送短信返回内容:状态=' + inttostr(ntohl(CMPP_SUBMIT_RESP_tag.Result)) + '其他错误.');
end;
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)