Loading...
Searching...
No Matches
mdns.h File Reference
`#include "lwip/apps/mdns_opts.h"`
`#include "lwip/netif.h"`

## Data Structures

struct | mdns_rr_info

## Macros

#define | mdns_resp_netif_settings_changed(netif)

## Typedefs

typedef void(* | service_get_txt_fn_t) (struct mdns_service *service, void *txt_userdata)
typedef void(* | mdns_name_result_cb_t) (struct netif *netif, u8_t result, s8_t slot)

## Functions

void * | mdns_get_service_txt_userdata (struct netif *netif, s8_t slot)
void | mdns_resp_init (void)
void | mdns_resp_register_name_result_cb (mdns_name_result_cb_t cb)
err_t | mdns_resp_add_netif (struct netif *netif, const char *hostname)
err_t | mdns_resp_remove_netif (struct netif *netif)
err_t | mdns_resp_rename_netif (struct netif *netif, const char *hostname)
int | mdns_resp_netif_active (struct netif *netif)
s8_t | mdns_resp_add_service (struct netif *netif, const char *name, const char *service, enum mdns_sd_proto proto, u16_t port, service_get_txt_fn_t txt_fn, void *txt_userdata)
err_t | mdns_resp_del_service (struct netif *netif, u8_t slot)
err_t | mdns_resp_rename_service (struct netif *netif, u8_t slot, const char *name)
err_t | mdns_resp_add_service_txtitem (struct mdns_service *service, const char *txt, u8_t txt_len)
void | mdns_resp_restart_delay (struct netif *netif, uint32_t delay)
void | mdns_resp_restart (struct netif *netif)
void | mdns_resp_announce (struct netif *netif)
err_t | mdns_search_service (const char *name, const char *service, enum mdns_sd_proto proto, struct netif *netif, search_result_fn_t result_fn, void *arg, u8_t *request_id)
void | mdns_search_stop (u8_t request_id)

## Detailed Description

MDNS responder

## Typedef Documentation

## mdns_name_result_cb_t

typedef void(* mdns_name_result_cb_t) (struct netif *netif, u8_t result, s8_t slot)

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

## service_get_txt_fn_t

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

## Function Documentation

## mdns_resp_register_name_result_cb()

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.