Name

cyg_mdns_sethostname — Set base hostname

Synopsis

#include <mdns.h>

cyg_bool cyg_mdns_sethostname(const cyg_uint8 *hostname);

Description

Request that the given NUL terminated UTF-8 string be used as the device hostname. This is only a request and depending on the external network devices the name may not be available. The hostname callback function interface provides, if required, application control over the alternative naming strategy when a hostname is not available, or becomes (due to external network changes) unavailable.

Return value

Boolean true on success, and false on error.