/* PURPOSE: (Test Zeroconf publishing.) */ #ifndef ZEROCONF_HH #define ZEROCONF_HH #include #ifdef HAVE_ZEROCONF #if __linux #include #include #include #endif #if __APPLE__ #include #endif #endif namespace Trick { class Zeroconf { public: Zeroconf() ; ~Zeroconf() {} ; int init() ; std::string get_name() ; void set_name(std::string) ; std::string get_type() ; void set_type(std::string) ; protected: std::string name ; std::string type ; #ifdef HAVE_ZEROCONF #if __linux AvahiSimplePoll *simple_poll ; AvahiClient *client ; AvahiEntryGroup *group ; #endif #if __APPLE__ DNSServiceRef dns_service_ref ; #endif #endif } ; } #endif