Zephyr Project API  3.2.0
A Scalable Open Source RTOS
dns_sd.h File Reference

DNS Service Discovery. More...

#include <stdint.h>
#include <zephyr/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_MIN_LABELS   3
 
#define DNS_SD_MAX_LABELS   4
 
#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...
 
bool dns_sd_is_service_type_enumeration (const struct dns_sd_rec *rec)
 Check if rec is a DNS-SD Service Type Enumeration. More...
 
void dns_sd_create_wildcard_filter (struct dns_sd_rec *filter)
 Create a wildcard filter for DNS-SD records. More...
 

Detailed Description

DNS Service Discovery.