summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-06-17 08:16:04 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-06-17 08:16:04 (GMT)
commit2b020adbee0be770c52f31699db793413d051bb3 (patch)
treee0beed93ef6e5714d28248abc3b6b9328a846ac1 /Swiften/Network/CachingDomainNameResolver.cpp
parentd46097d2c30a0eafde1f1c9d98cb3b20896c4682 (diff)
downloadswift-contrib-2b020adbee0be770c52f31699db793413d051bb3.zip
swift-contrib-2b020adbee0be770c52f31699db793413d051bb3.tar.bz2
CachingNameOnlyDomainNameResolver -> CachingDomainNameResolver.
Diffstat (limited to 'Swiften/Network/CachingDomainNameResolver.cpp')
-rw-r--r--Swiften/Network/CachingDomainNameResolver.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/Swiften/Network/CachingDomainNameResolver.cpp b/Swiften/Network/CachingDomainNameResolver.cpp
new file mode 100644
index 0000000..4cf8286
--- /dev/null
+++ b/Swiften/Network/CachingDomainNameResolver.cpp
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2012 Kevin Smith
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#include <Swiften/Network/CachingDomainNameResolver.h>
+
+#include <boost/smart_ptr/make_shared.hpp>
+
+namespace Swift {
+
+CachingDomainNameResolver::CachingDomainNameResolver(DomainNameResolver* realResolver, EventLoop*) : realResolver(realResolver) {
+}
+
+CachingDomainNameResolver::~CachingDomainNameResolver() {
+
+}
+
+DomainNameServiceQuery::ref CachingDomainNameResolver::createServiceQuery(const std::string& name) {
+ //TODO: Cache
+ return realResolver->createServiceQuery(name);
+}
+
+DomainNameAddressQuery::ref CachingDomainNameResolver::createAddressQuery(const std::string& name) {
+ //TODO: Cache
+ return realResolver->createAddressQuery(name);
+}
+
+}