14 #include "network/Zeroconf.h" 15 #include "threads/CriticalSection.h" 17 #include <CoreFoundation/CoreFoundation.h> 18 #if defined(TARGET_DARWIN_OSX) 19 #include <CoreServices/CoreServices.h> 21 #include <CFNetwork/CFNetServices.h> 32 bool doPublishService(
const std::string& fcr_identifier,
33 const std::string& fcr_type,
34 const std::string& fcr_name,
36 const std::vector<std::pair<std::string, std::string>>& txt)
override;
38 bool doForceReAnnounceService(
const std::string& fcr_identifier)
override;
40 bool doRemoveService(
const std::string& fcr_ident)
override;
42 void doStop()
override;
45 static void registerCallback(CFNetServiceRef theService, CFStreamError* error,
void* info);
46 void cancelRegistration(CFNetServiceRef theService);
49 CFRunLoopRef m_runloop =
nullptr;
52 CCriticalSection m_data_guard;
53 typedef std::map<std::string, CFNetServiceRef> tServiceMap;
54 tServiceMap m_services;
Definition: ZeroconfDarwin.h:24
this class provides support for zeroconf while the different zeroconf implementations have asynchrono...
Definition: Zeroconf.h:28