interfacing between transports written in different programming languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5 KiB

12 months ago
  1. // this is the mandatory source for general TSCs
  2. decl enum @name;
  3. decl item @name;
  4. decl hex is item (output=hex);
  5. // the first octet is the transport id; for general values it is 0x00
  6. // the first bit of the second octet is set if this is an error state
  7. enum transport_status_code {
  8. hex ready 0x00000000;
  9. doc > non error states
  10. hex connection_up 0x00000001;
  11. hex message_delivered 0x00000002;
  12. hex message_on_the_way 0x00000003;
  13. hex could_not_deliver_resending 0x00000004;
  14. doc > error states
  15. hex connection_down 0x00800001 doc="sent by connection based transports";
  16. hex some_recipients_unreachable 0x00800002;
  17. hex no_recipients_reachable 0x00800003;
  18. hex no_config 0x00800004;
  19. hex config_incomplete_or_wrong 0x00800005;
  20. hex no_send_config 0x00800006;
  21. hex no_recv_config 0x00800007;
  22. hex send_config_incomplete_or_wrong 0x00800008;
  23. hex recv_config_incomplete_or_wrong 0x00800009;
  24. hex network_timeout 0x0080000a;
  25. hex could_not_deliver_giving_up 0x0080000b;
  26. hex rx_queue_underrun 0x0080000c doc="no message left to be received";
  27. hex tx_queue_overflow 0x0080000d doc="transmit queue is full";
  28. doc > transport is shut down
  29. hex shut_down 0x00ffffff;
  30. include ./email.tsc
  31. include ./rce.tsc
  32. include ./pdl.tsc
  33. include ./sctp.tsc
  34. include ./cc.tsc
  35. }