mdns_networking.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. /**
  10. * @brief Queue RX packet action
  11. */
  12. esp_err_t _mdns_send_rx_action(mdns_rx_packet_t * packet);
  13. /**
  14. * @brief Start PCB
  15. */
  16. esp_err_t _mdns_pcb_init(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol);
  17. /**
  18. * @brief Stop PCB
  19. */
  20. esp_err_t _mdns_pcb_deinit(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol);
  21. /**
  22. * @brief send packet over UDP
  23. *
  24. * @param server The server
  25. * @param data byte array containing the packet data
  26. * @param len length of the packet data
  27. *
  28. * @return length of sent packet or 0 on error
  29. */
  30. 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);
  31. /**
  32. * @brief Gets data pointer to the mDNS packet
  33. */
  34. void* _mdns_get_packet_data(mdns_rx_packet_t *packet);
  35. /**
  36. * @brief Gets data length of c
  37. */
  38. size_t _mdns_get_packet_len(mdns_rx_packet_t *packet);
  39. /**
  40. * @brief Free the mDNS packet
  41. */
  42. void _mdns_packet_free(mdns_rx_packet_t *packet);
  43. #endif /* ESP_MDNS_NETWORKING_H_ */