mdns_networking.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_timer.h"
  22. #include "esp_event.h"
  23. #if CONFIG_ETH_ENABLED
  24. #include "esp_eth.h"
  25. #endif
  26. /**
  27. * @brief Queue RX packet action
  28. */
  29. esp_err_t _mdns_send_rx_action(mdns_rx_packet_t * packet);
  30. /**
  31. * @brief Start PCB
  32. */
  33. esp_err_t _mdns_pcb_init(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol);
  34. /**
  35. * @brief Stop PCB
  36. */
  37. esp_err_t _mdns_pcb_deinit(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol);
  38. /**
  39. * @brief send packet over UDP
  40. *
  41. * @param server The server
  42. * @param data byte array containing the packet data
  43. * @param len length of the packet data
  44. *
  45. * @return length of sent packet or 0 on error
  46. */
  47. 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);
  48. #endif /* ESP_MDNS_NETWORKING_H_ */