Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
DNS Service Discovery record. More...
#include <dns_sd.h>
Data Fields | |
const char * | instance |
"<Instance>" - e.g. | |
const char * | service |
Top half of the "<Service>" such as "_http". | |
const char * | proto |
Bottom half of the "<Service>" "_tcp" or "_udp". | |
const char * | domain |
"<Domain>" such as "local" or "zephyrproject.org" | |
const char * | text |
DNS TXT record. | |
size_t | text_size |
Size (in bytes) of the DNS TXT record | |
const uint16_t * | port |
A pointer to the port number used by the service. | |
DNS Service Discovery record.
This structure used in the implementation of RFC 6763 and should not need to be accessed directly from application code.
The port pointer must be non-NULL. When the value in port is non-zero, the service is advertised as being on that particular port. When the value in port is zero, then the service is not advertised.
Thus, it is possible for multiple services to advertise on a particular port if they hard-code the port.
const char* dns_sd_rec::domain |
"<Domain>" such as "local" or "zephyrproject.org"
const char* dns_sd_rec::instance |
"<Instance>" - e.g.
"My HTTP Server"
const uint16_t* dns_sd_rec::port |
A pointer to the port number used by the service.
const char* dns_sd_rec::proto |
Bottom half of the "<Service>" "_tcp" or "_udp".
const char* dns_sd_rec::service |
Top half of the "<Service>" such as "_http".
const char* dns_sd_rec::text |
DNS TXT record.
size_t dns_sd_rec::text_size |
Size (in bytes) of the DNS TXT record