Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
dns_sd.h File Reference

DNS Service Discovery. More...

#include <stdint.h>
#include <sys/byteorder.h>

Go to the source code of this file.

Macros

#define DNS_SD_INSTANCE_MIN_SIZE   1
 
#define DNS_SD_INSTANCE_MAX_SIZE   63
 
#define DNS_SD_SERVICE_MIN_SIZE   2
 
#define DNS_SD_SERVICE_MAX_SIZE   16
 
#define DNS_SD_SERVICE_PREFIX   '_'
 
#define DNS_SD_PROTO_SIZE   4
 
#define DNS_SD_DOMAIN_MIN_SIZE   2
 
#define DNS_SD_DOMAIN_MAX_SIZE   63
 
#define DNS_SD_REGISTER_SERVICE(id, instance, service, proto, domain, text, port)
 Register a service for DNS Service Discovery. More...
 
#define DNS_SD_REGISTER_TCP_SERVICE(id, instance, service, domain, text, port)
 Register a TCP service for DNS Service Discovery. More...
 
#define DNS_SD_REGISTER_UDP_SERVICE(id, instance, service, domain, text, port)
 Register a UDP service for DNS Service Discovery. More...
 
#define DNS_SD_EMPTY_TXT   dns_sd_empty_txt
 

Functions

static size_t dns_sd_txt_size (const struct dns_sd_rec *rec)
 Obtain the size of DNS-SD TXT data. More...
 

Detailed Description

DNS Service Discovery.