mdns_networking.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef ESP_MDNS_NETWORKING_H_
  2. #define ESP_MDNS_NETWORKING_H_
  3. /*
  4. * MDNS Server Networking -- private include
  5. *
  6. */
  7. #include "mdns.h"
  8. #include "mdns_private.h"
  9. #include "sdkconfig.h"
  10. #include "freertos/FreeRTOS.h"
  11. #include "freertos/queue.h"
  12. #include "freertos/semphr.h"
  13. #include "lwip/ip_addr.h"
  14. #include "lwip/pbuf.h"
  15. #include "lwip/igmp.h"
  16. #include "lwip/udp.h"
  17. #include "lwip/mld6.h"
  18. #include "lwip/priv/tcpip_priv.h"
  19. #include "esp_wifi.h"
  20. #include "esp_system.h"
  21. #include "esp_event.h"
  22. #if CONFIG_ETH_ENABLED
  23. #include "esp_eth.h"
  24. #endif
  25. /**
  26. * @brief Queue RX packet action
  27. */
  28. esp_err_t _mdns_send_rx_action(mdns_rx_packet_t * packet);
  29. /**
  30. * @brief Start PCB
  31. */
  32. esp_err_t _mdns_pcb_init(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol);
  33. /**
  34. * @brief Stop PCB
  35. */
  36. esp_err_t _mdns_pcb_deinit(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol);
  37. /**
  38. * @brief send packet over UDP
  39. *
  40. * @param server The server
  41. * @param data byte array containing the packet data
  42. * @param len length of the packet data
  43. *
  44. * @return length of sent packet or 0 on error
  45. */
  46. size_t _mdns_udp_pcb_write(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol, const esp_ip_addr_t *ip, uint16_t port, uint8_t * data, size_t len);
  47. #endif /* ESP_MDNS_NETWORKING_H_ */