diff options
Diffstat (limited to 'Swiften/Network/CachingDomainNameResolver.cpp')
-rw-r--r-- | Swiften/Network/CachingDomainNameResolver.cpp | 30 |
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); +} + +} |