Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
MDNS responder. More...
Go to the source code of this file.
Typedefs | |
| typedef void(* | service_get_txt_fn_t )(struct mdns_service *service, void *txt_userdata) |
| Callback function to add text to a reply, called when generating the reply. | |
| typedef void(* | mdns_name_result_cb_t )(struct netif *netif, u8_t result) |
| Callback function to let application know the result of probing network for name uniqueness, called with result MDNS_PROBING_SUCCESSFUL if no other node claimed use for the name for the netif or a service and is safe to use, or MDNS_PROBING_CONFLICT if another node is already using it and mdns is disabled on this interface. | |
Functions | |
| void | mdns_resp_init (void) |
| Initiate MDNS responder. | |
| void | mdns_resp_register_name_result_cb (mdns_name_result_cb_t cb) |
| Register a callback function that is called if probing is completed successfully or with a conflict. | |
| err_t | mdns_resp_add_netif (struct netif *netif, const char *hostname, u32_t dns_ttl) |
| Activate MDNS responder for a network interface. | |
| err_t | mdns_resp_remove_netif (struct netif *netif) |
| Stop responding to MDNS queries on this interface, leave multicast groups, and free the helper structure and any of its services. | |
| err_t | mdns_resp_rename_netif (struct netif *netif, const char *hostname) |
| Update MDNS hostname for a network interface. | |
| s8_t | mdns_resp_add_service (struct netif *netif, const char *name, const char *service, enum mdns_sd_proto proto, u16_t port, u32_t dns_ttl, service_get_txt_fn_t txt_fn, void *txt_userdata) |
| Add a service to the selected network interface. | |
| err_t | mdns_resp_del_service (struct netif *netif, s8_t slot) |
| Delete a service on the selected network interface. | |
| err_t | mdns_resp_rename_service (struct netif *netif, s8_t slot, const char *name) |
| Update name for an MDNS service. | |
| err_t | mdns_resp_add_service_txtitem (struct mdns_service *service, const char *txt, u8_t txt_len) |
| Call this function from inside the service_get_txt_fn_t callback to add text data. | |
| void | mdns_resp_restart (struct netif *netif) |
| Restart mdns responder. | |
| void | mdns_resp_announce (struct netif *netif) |
| Send unsolicited answer containing all our known data. | |
Detailed Description
MDNS responder.
Definition in file mdns.h.
Typedef Documentation
| typedef void(* mdns_name_result_cb_t)(struct netif *netif, u8_t result) |
Callback function to let application know the result of probing network for name uniqueness, called with result MDNS_PROBING_SUCCESSFUL if no other node claimed use for the name for the netif or a service and is safe to use, or MDNS_PROBING_CONFLICT if another node is already using it and mdns is disabled on this interface.
| typedef void(* service_get_txt_fn_t)(struct mdns_service *service, void *txt_userdata) |
Function Documentation
| void mdns_resp_register_name_result_cb | ( | mdns_name_result_cb_t | cb ) |
Register a callback function that is called if probing is completed successfully or with a conflict.
Definition at line 2344 of file lwip_mdns.c.
Generated on Tue Jul 12 2022 13:55:15 by
1.7.2