#ifndef OSX_NETWORK_SERVICE_HXX #define OSX_NETWORK_SERVICE_HXX #include #include #include #include #include #include #include // Include this early to avoid error as check() gets defined by some SDK header to empty #include #import #include #import "OSXNetworkService.h" #include "ZeroconfService.hxx" namespace sd { class OSXNetworkService : public ZeroconfService { private: OSXBonjourService *osxservice; public: OSXNetworkService(const std::string& aname = "", unsigned int aport = 1599) : ZeroconfService(aname, aport){} void clear() { [osxservice dealloc]; } void setup() { osxservice = [[OSXBonjourService alloc] init]; [osxservice publishImpressRemoteServiceOnLocalNetworkWithName: @""]; }; }; } #endif