diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-25 09:37:42 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-25 09:37:42 (GMT) |
commit | 0f77a684b42f25052eb1cfa688721e321526a90d (patch) | |
tree | 226c07deff7a663f8aefdfc8814e9ecd04085999 /Swiften/LinkLocal/BonjourQuery.cpp | |
parent | b33a2937fe4a3cae0017892ad7f5c27b8a6f976d (diff) | |
download | swift-contrib-0f77a684b42f25052eb1cfa688721e321526a90d.zip swift-contrib-0f77a684b42f25052eb1cfa688721e321526a90d.tar.bz2 |
Created DNSSD submodule for LinkLocal.
Diffstat (limited to 'Swiften/LinkLocal/BonjourQuery.cpp')
-rw-r--r-- | Swiften/LinkLocal/BonjourQuery.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Swiften/LinkLocal/BonjourQuery.cpp b/Swiften/LinkLocal/BonjourQuery.cpp deleted file mode 100644 index a9c13fb..0000000 --- a/Swiften/LinkLocal/BonjourQuery.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "Swiften/LinkLocal/BonjourQuery.h" -#include "Swiften/LinkLocal/BonjourQuerier.h" - -namespace Swift { - -BonjourQuery::BonjourQuery(boost::shared_ptr<BonjourQuerier> q) : querier(q), sdRef(0) { -} - -BonjourQuery::~BonjourQuery() { - DNSServiceRefDeallocate(sdRef); -} - -void BonjourQuery::processResult() { - boost::lock_guard<boost::mutex> lock(sdRefMutex); - DNSServiceProcessResult(sdRef); -} - -int BonjourQuery::getSocketID() const { - boost::lock_guard<boost::mutex> lock(sdRefMutex); - return DNSServiceRefSockFD(sdRef); -} - -void BonjourQuery::run() { - querier->addRunningQuery(shared_from_this()); -} - -void BonjourQuery::finish() { - querier->removeRunningQuery(shared_from_this()); -} - -} |