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;

 

posted @   94cool  阅读(455)  评论(0编辑  收藏  举报
(评论功能已被禁用)
编辑推荐:
· 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)
< 2010年4月 >
28 29 30 31 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示