ua_transport.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef UA_TRANSPORT_H_
  2. #define UA_TRANSPORT_H_
  3. #include "ua_types.h"
  4. #include "ua_types_encoding_binary.h"
  5. typedef enum SecurityTokenRequestType {
  6. UA_SECURITYTOKEN_ISSUE = 0,
  7. UA_SECURITYTOKEN_RENEW = 1
  8. } SecurityTokenRequestType;
  9. typedef enum {
  10. UA_SECURITYMODE_INVALID = 0,
  11. UA_SECURITYMODE_NONE = 1,
  12. UA_SECURITYMODE_SIGNANDENCRYPT = 2
  13. } SecurityMode;
  14. /* MessageType */
  15. typedef UA_Int32 UA_MessageType;
  16. enum UA_MessageType {
  17. UA_MESSAGETYPE_HEL = 0x48454C, // H E L
  18. UA_MESSAGETYPE_ACK = 0x41434B, // A C k
  19. UA_MESSAGETYPE_ERR = 0x455151, // E R R
  20. UA_MESSAGETYPE_OPN = 0x4F504E, // O P N
  21. UA_MESSAGETYPE_MSG = 0x4D5347, // M S G
  22. UA_MESSAGETYPE_CLO = 0x434C4F // C L O
  23. };
  24. UA_TYPE_PROTOTYPES(UA_MessageType)
  25. UA_TYPE_BINARY_ENCODING(UA_MessageType)
  26. #ifdef DEBUG
  27. void UA_MessageType_printf(char *label, UA_MessageType *p);
  28. #endif
  29. /* All other transport types are auto-generated from a schema definition. */
  30. #include "ua_transport_generated.h"
  31. #endif /* UA_TRANSPORT_H_ */