smasi_pdu.def
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:3k
源码类别:

手机WAP编程

开发平台:

WINDOWS

  1. /*
  2.  * smasi_pdu.def - definitions of SMASI PDU structure
  3.  *
  4.  * Stipe Tolj <tolj@wapme-systems.de>
  5.  */
  6. #ifndef PDU
  7. #error Macro PDU not defined.
  8. #endif
  9. #ifndef COMATERMINATED
  10. #error Macro COMATERMINATED not defined.
  11. #endif
  12. #ifndef NONTERMINATED
  13. #error Macro NONTERMINATED not defined.
  14. #endif
  15. #ifdef HEADER
  16. #error Macro HEADER was already defined.
  17. #endif
  18. #define HEADER 
  19. NONTERMINATED(command)
  20. PDU(LogonReq,
  21.     0x00000001,
  22.     HEADER
  23.     COMATERMINATED(Name)
  24.     COMATERMINATED(Password)
  25. )
  26. PDU(LogonConf,
  27.     0x00000002,
  28.     HEADER
  29. )
  30. PDU(LogonRej,
  31.     0x00000003,
  32.     HEADER
  33.     COMATERMINATED(Reason)
  34. )
  35. PDU(LogoffReq,
  36.     0x00000004,
  37.     HEADER
  38.     COMATERMINATED(Reason)
  39. )
  40. PDU(LogoffConf,
  41.     0x00000005,
  42.     HEADER
  43. )
  44. PDU(SubmitReq,
  45.     0x00000010,
  46.     HEADER
  47.     COMATERMINATED(Originator)
  48.     COMATERMINATED(OriginatorType)
  49.     COMATERMINATED(OriginatorPlan)
  50.     COMATERMINATED(Destination)
  51.     COMATERMINATED(DestinationType)
  52.     COMATERMINATED(DestinationPlan)
  53.     COMATERMINATED(Sequence)
  54.     COMATERMINATED(MqPriority)
  55.     COMATERMINATED(Body)
  56.     COMATERMINATED(UserDataHeader)
  57.     COMATERMINATED(BodyEncoding)
  58.     COMATERMINATED(MsEncoding)
  59.     COMATERMINATED(Class)
  60.     COMATERMINATED(ProtocolID)
  61. )
  62. PDU(SubmitConf,
  63.     0x00000011,
  64.     HEADER
  65.     COMATERMINATED(MsgReference)
  66.     COMATERMINATED(JobId)
  67.     COMATERMINATED(Point)
  68.     COMATERMINATED(Sequence)
  69. )
  70. PDU(SubmitRej,
  71.     0x00000012,
  72.     HEADER
  73.     COMATERMINATED(RejectCode)
  74.     COMATERMINATED(MsgReference)
  75.     COMATERMINATED(Reason)
  76.     COMATERMINATED(JobId)
  77.     COMATERMINATED(At)
  78.     COMATERMINATED(Point)
  79.     COMATERMINATED(Sequence)
  80. )
  81. PDU(DeliverReq,
  82.     0x00000013,
  83.     HEADER
  84.     COMATERMINATED(Originator)
  85.     COMATERMINATED(Destination)
  86.     COMATERMINATED(Body)
  87.     COMATERMINATED(UserDataHeader)
  88.     COMATERMINATED(MsgReference)
  89.     COMATERMINATED(Sequence)
  90.     COMATERMINATED(mqTo)
  91.     COMATERMINATED(mqFrom)
  92.     COMATERMINATED(JobId)
  93.     COMATERMINATED(At)
  94.     COMATERMINATED(Point)
  95.     COMATERMINATED(SmscSequence)
  96.     COMATERMINATED(SmscReference)
  97.     COMATERMINATED(Scts)
  98.     COMATERMINATED(DestinationPlan)
  99.     COMATERMINATED(DestinationType)
  100.     COMATERMINATED(OriginatorPlan)
  101.     COMATERMINATED(OriginatorType)
  102.     COMATERMINATED(ProtocolId)
  103.     COMATERMINATED(PacketId)
  104.     COMATERMINATED(Position)
  105.     COMATERMINATED(Class)
  106.     COMATERMINATED(MsEncoding)
  107. )
  108. PDU(DeliverConf,
  109.     0x00000014,
  110.     HEADER
  111.     COMATERMINATED(MsgReference)
  112.     COMATERMINATED(Sequence)
  113. )
  114. PDU(DeliverRej,
  115.     0x00000015,
  116.     HEADER
  117.     COMATERMINATED(RejectCode)
  118.     COMATERMINATED(MsgReference)
  119.     COMATERMINATED(Sequence)
  120. )
  121. PDU(Error,
  122.     0x80000016,
  123.     HEADER
  124.     COMATERMINATED(Reason)
  125. )
  126. PDU(EnquireLinkReq,
  127.     0x80000017,
  128.     HEADER
  129. )
  130. PDU(EnquireLinkConf,
  131.     0x80000018,
  132.     HEADER
  133. )
  134. #undef PDU
  135. #undef COMATERMINATED
  136. #undef NONTERMINATED
  137. #undef HEADER