DNS-SD (mDNSResponder's dns_sd.h in NetBSD base: libdns_sd, comp set; mdnsd, dns-sd in base). Collected 2026-11-11 for McdeSys mcde_sys_net_browse. Source: src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h -- src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h:1688 typedef void (DNSSD_API *DNSServiceBrowseReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *serviceName, const char *regtype, const char *replyDomain, void *context ); /*! * @brief -- src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h:1752 DNSServiceErrorType DNSSD_API DNSServiceBrowse ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *regtype, const char *domain, /* may be NULL */ DNSServiceBrowseReply callBack, void *context ); /*! * @brief * The definition of the DNSServiceResolve callback function. -- src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h:1804 typedef void (DNSSD_API *DNSServiceResolveReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullname, const char *hosttarget, uint16_t port, /* In network byte order */ uint16_t txtLen, const unsigned char *txtRecord, void *context ); -- src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h:1901 DNSServiceErrorType DNSSD_API DNSServiceResolve ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context ); /********************************************************************************************* * -- src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h:1086 * * @discussion * The DNS Service Discovery implementation uses this socket to communicate between the client and * the daemon. The application MUST NOT directly read from or write to this socket. * Access to the socket is provided so that it can be used as a kqueue event source, a CFRunLoop * event source, in a select() loop, etc. When the underlying event management subsystem (kqueue/ * select/CFRunLoop etc.) indicates to the client that data is available for reading on the * socket, the client should call DNSServiceProcessResult(), which will extract the daemon's * reply from the socket, and pass it to the appropriate application callback. By using a run * loop or select(), results from the daemon can be processed asynchronously. Alternatively, * a client can choose to fork a thread and have it loop calling "DNSServiceProcessResult(ref);" * If DNSServiceProcessResult() is called when no data is available for reading on the socket, it * will block until data does become available, and then process the data and return to the caller. * The application is responsible for checking the return value of DNSServiceProcessResult() * to determine if the socket is valid and if it should continue to process data on the socket. * When data arrives on the socket, the client is responsible for calling DNSServiceProcessResult(ref) * in a timely fashion -- if the client allows a large backlog of data to build up the daemon * may terminate the connection. */ DNSSD_EXPORT dnssd_sock_t DNSSD_API DNSServiceRefSockFD(DNSServiceRef sdRef); /*!