#pragma once #include #include #include #include #include "Swiften/EventLoop/EventOwner.h" namespace Swift { class BonjourQuerier; class BonjourQuery : public EventOwner, public boost::enable_shared_from_this { public: BonjourQuery(boost::shared_ptr); virtual ~BonjourQuery(); void processResult(); int getSocketID() const; protected: void run(); void finish(); protected: boost::shared_ptr querier; mutable boost::mutex sdRefMutex; DNSServiceRef sdRef; }; }