cyg_mdns_setservicelabel — Set service label


#include <mdns.h>

cyg_bool cyg_mdns_setservicelabel(const cyg_mdns_service_identity *id, const cyg_uint8 *label);


Request that the given NUL terminated UTF-8 string be used as the label for the service specified by id. This is only a request and depending on the external network devices the name may not be available. The servicelabel callback function interface provides, if required, application control over the alternative naming strategy used when the complete <label>.<service>.<proto>.local name is not available.


This function is not available if the system is configured with CYGFUN_MDNS_COMMON_NAME enabled.

Return value

Boolean true on success, and false on error.