multicast.h 563 B

12345678910111213141516171819202122232425262728
  1. #ifndef _MULTICAST_H_
  2. #define _MULTICAST_H_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <stdint.h>
  7. /* Multicast test debug message printout enable */
  8. #define _MULTICAST_DEBUG_
  9. #ifndef DATA_BUF_SIZE
  10. #define DATA_BUF_SIZE 2048
  11. #endif
  12. /* UDP Multicast Loopback test example */
  13. int32_t multicast_loopback(uint8_t sn, uint8_t* buf, uint8_t* multicast_ip, uint16_t multicast_port);
  14. /* UDP Multicast Recv test example */
  15. int32_t multicast_recv(uint8_t sn, uint8_t* buf, uint8_t* multicast_ip, uint16_t multicast_port);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif