summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-04-01 09:27:45 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-04-01 09:27:45 (GMT)
commite9a33e1cfc91af374f928931f47b19f53cb165d7 (patch)
treef0a72876d8b0f53f6e5a335321aca785e81129dd /Swiften/Network/CAresDomainNameResolver.h
parent950dfa7923f62297429e49a135e4fb363447366d (diff)
downloadswift-contrib-e9a33e1cfc91af374f928931f47b19f53cb165d7.zip
swift-contrib-e9a33e1cfc91af374f928931f47b19f53cb165d7.tar.bz2
Removing CAres resolver.
This has never been used.
Diffstat (limited to 'Swiften/Network/CAresDomainNameResolver.h')
-rw-r--r--Swiften/Network/CAresDomainNameResolver.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/Swiften/Network/CAresDomainNameResolver.h b/Swiften/Network/CAresDomainNameResolver.h
deleted file mode 100644
index d0ff82c..0000000
--- a/Swiften/Network/CAresDomainNameResolver.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2010 Remko Tronçon
- * Licensed under the GNU General Public License v3.
- * See Documentation/Licenses/GPLv3.txt for more information.
- */
-
-#pragma once
-
-#include <ares.h>
-#include <boost/thread/thread.hpp>
-#include <boost/thread/mutex.hpp>
-#include <list>
-
-#include <Swiften/Network/DomainNameResolver.h>
-
-namespace Swift {
- class CAresQuery;
-
- class CAresDomainNameResolver : public DomainNameResolver {
- public:
- CAresDomainNameResolver();
- ~CAresDomainNameResolver();
-
- virtual boost::shared_ptr<DomainNameServiceQuery> createServiceQuery(const std::string& name);
- virtual boost::shared_ptr<DomainNameAddressQuery> createAddressQuery(const std::string& name);
-
- private:
- friend class CAresQuery;
-
- void run();
- void addToQueue(boost::shared_ptr<CAresQuery>);
-
- private:
- bool stopRequested;
- ares_channel channel;
- boost::thread* thread;
- boost::mutex pendingQueriesMutex;
- std::list< boost::shared_ptr<CAresQuery> > pendingQueries;
- };
-}