cyg_mdns_setservicelabel

Name

cyg_mdns_setservicelabel -- Set service label

Synopsis

#include <mdns.h>

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

Description

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.

Note: 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.

2017-02-09
Documentation license for this page: eCosPro License