11 #include "network/ZeroconfBrowser.h" 12 #include "threads/CriticalSection.h" 13 #include "threads/Thread.h" 32 virtual bool doAddServiceType(
const std::string& fcr_service_type);
33 virtual bool doRemoveServiceType(
const std::string& fcr_service_type);
35 virtual std::vector<CZeroconfBrowser::ZeroconfService> doGetFoundServices();
40 static void DNSSD_API BrowserCallback(DNSServiceRef browser,
41 DNSServiceFlags flags,
42 uint32_t interfaceIndex,
43 DNSServiceErrorType errorCode,
44 const char *serviceName,
46 const char *replyDomain,
49 static void DNSSD_API GetAddrInfoCallback(DNSServiceRef sdRef,
50 DNSServiceFlags flags,
51 uint32_t interfaceIndex,
52 DNSServiceErrorType errorCode,
54 const struct sockaddr *address,
60 static void DNSSD_API ResolveCallback(DNSServiceRef sdRef,
61 DNSServiceFlags flags,
62 uint32_t interfaceIndex,
63 DNSServiceErrorType errorCode,
65 const char *hosttarget,
68 const unsigned char *txtRecord,
77 void ProcessResults();
80 CCriticalSection m_data_guard;
82 typedef std::map<std::string, DNSServiceRef> tBrowserMap;
83 tBrowserMap m_service_browsers;
86 typedef std::map<DNSServiceRef, std::vector<std::pair<ZeroconfService, unsigned int> > > tDiscoveredServicesMap;
87 tDiscoveredServicesMap m_discovered_services;
88 DNSServiceRef m_browser;
This is an Event class built from a ConditionVariable.
Definition: Event.h:35
Definition: ZeroconfBrowserMDNS.h:23
Definition: ZeroconfBrowser.h:27
this class provides support for zeroconf browsing
Definition: ZeroconfBrowser.h:24