Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dns_sd_rec Struct Reference

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_tport
 A pointer to the port number used by the service.
 

Detailed Description

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.

See also
RFC 6763

Field Documentation

◆ domain

const char* dns_sd_rec::domain

"<Domain>" such as "local" or "zephyrproject.org"

◆ instance

const char* dns_sd_rec::instance

"<Instance>" - e.g.

"My HTTP Server"

◆ port

const uint16_t* dns_sd_rec::port

A pointer to the port number used by the service.

◆ proto

const char* dns_sd_rec::proto

Bottom half of the "<Service>" "_tcp" or "_udp".

◆ service

const char* dns_sd_rec::service

Top half of the "<Service>" such as "_http".

◆ text

const char* dns_sd_rec::text

DNS TXT record.

◆ text_size

size_t dns_sd_rec::text_size

Size (in bytes) of the DNS TXT record


The documentation for this struct was generated from the following file: