const.h 813 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /******************************************************************
  2. *
  3. * uEcho for C
  4. *
  5. * Copyright (C) Satoshi Konno 2015
  6. *
  7. * This is licensed under BSD-style license, see file COPYING.
  8. *
  9. ******************************************************************/
  10. #ifndef _UECHO_CONST_H_
  11. #define _UECHO_CONST_H_
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #define uEchoMulticastAddr "224.0.23.0"
  16. enum {
  17. uEchoSupportedMajorVersion = 1,
  18. uEchoSupportedMinorVersion = 13,
  19. uEchoUdpPort = 3610,
  20. uEchoTcpPort = 3610,
  21. uEchoTidMin = 0,
  22. uEchoTidMax = 65535,
  23. };
  24. typedef enum {
  25. uEchoSpecifiedMessageFormat = 0x01,
  26. uEchoArbitraryMessageFormat = 0x02,
  27. } uEchoMessageFormatType;
  28. enum {
  29. uEchoManufactureCodeTestMin = 0xFFFFF0,
  30. uEchoManufactureCodeTestMax = 0xFFFFFF,
  31. };
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif