mikroSDK Reference Manual
dns_sd_misc.h
Go to the documentation of this file.
1
31#ifndef _DNS_SD_MISC_H
32#define _DNS_SD_MISC_H
33
34//Dependencies
35#include "core/net.h"
36#include "dns_sd/dns_sd.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//DNS-SD related functions
44void dnsSdChangeState(DnsSdContext *context, MdnsState newState,
45 systime_t delay);
46
47void dnsSdChangeInstanceName(DnsSdContext *context);
48
49error_t dnsSdSendProbe(DnsSdContext *context);
50error_t dnsSdSendAnnouncement(DnsSdContext *context);
51error_t dnsSdSendGoodbye(DnsSdContext *context, const DnsSdService *service);
52
53error_t dnsSdParseQuestion(NetInterface *interface, const MdnsMessage *query,
54 size_t offset, const DnsQuestion *question, MdnsMessage *response);
55
56void dnsSdParseNsRecord(NetInterface *interface, const MdnsMessage *query,
57 size_t offset, const DnsResourceRecord *record);
58
59void dnsSdParseAnRecord(NetInterface *interface, const MdnsMessage *response,
60 size_t offset, const DnsResourceRecord *record);
61
62void dnsSdGenerateAdditionalRecords(NetInterface *interface,
63 MdnsMessage *response, bool_t legacyUnicast);
64
65error_t dnsSdFormatServiceEnumPtrRecord(NetInterface *interface,
66 MdnsMessage *message, const DnsSdService *service, uint32_t ttl);
67
68error_t dnsSdFormatPtrRecord(NetInterface *interface, MdnsMessage *message,
69 const DnsSdService *service, uint32_t ttl);
70
71error_t dnsSdFormatSrvRecord(NetInterface *interface, MdnsMessage *message,
72 const DnsSdService *service, bool_t cacheFlush, uint32_t ttl);
73
74error_t dnsSdFormatTxtRecord(NetInterface *interface, MdnsMessage *message,
75 const DnsSdService *service, bool_t cacheFlush, uint32_t ttl);
76
77error_t dnsSdFormatNsecRecord(NetInterface *interface, MdnsMessage *message,
78 const DnsSdService *service, bool_t cacheFlush, uint32_t ttl);
79
80//C++ guard
81#ifdef __cplusplus
82}
83#endif
84
85#endif
DNS-SD (DNS-Based Service Discovery)
error_t
Error codes.
Definition error.h:43
MdnsState
mDNS responder states
Definition mdns_responder.h:139
TCP/IP stack core.
uint32_t systime_t
System time.
Definition os_port_none.h:90
DNS-SD service descriptor.
Definition dns_sd.h:124
mDNS message
Definition mdns_common.h:78