1 #ifndef ESP_MDNS_NETWORKING_H_ 2 #define ESP_MDNS_NETWORKING_H_ 3 4 /* 5 * MDNS Server Networking -- private include 6 * 7 */ 8 #include "mdns.h" 9 #include "mdns_private.h" 10 11 12 /** 13 * @brief Queue RX packet action 14 */ 15 esp_err_t _mdns_send_rx_action(mdns_rx_packet_t * packet); 16 17 /** 18 * @brief Start PCB 19 */ 20 esp_err_t _mdns_pcb_init(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol); 21 22 /** 23 * @brief Stop PCB 24 */ 25 esp_err_t _mdns_pcb_deinit(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol); 26 27 /** 28 * @brief send packet over UDP 29 * 30 * @param server The server 31 * @param data byte array containing the packet data 32 * @param len length of the packet data 33 * 34 * @return length of sent packet or 0 on error 35 */ 36 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); 37 38 /** 39 * @brief Gets data pointer to the mDNS packet 40 */ 41 void* _mdns_get_packet_data(mdns_rx_packet_t *packet); 42 43 /** 44 * @brief Gets data length of c 45 */ 46 size_t _mdns_get_packet_len(mdns_rx_packet_t *packet); 47 48 /** 49 * @brief Free the mDNS packet 50 */ 51 void _mdns_packet_free(mdns_rx_packet_t *packet); 52 53 #endif /* ESP_MDNS_NETWORKING_H_ */ 54