diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-12-31 13:27:52 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-12-31 13:27:52 (GMT) |
commit | 152c455e18aae9b613f17bca8bba4a2beafe0228 (patch) | |
tree | cde533a0bf5dbe014acba3eb2645761ade53dd20 /Swiften/Network/StaticDomainNameResolver.h | |
parent | 3625bf9f94aad738b6d44da4b8f70c60cd167647 (diff) | |
download | swift-contrib-152c455e18aae9b613f17bca8bba4a2beafe0228.zip swift-contrib-152c455e18aae9b613f17bca8bba4a2beafe0228.tar.bz2 |
Added tests for timing out initial connect.
Diffstat (limited to 'Swiften/Network/StaticDomainNameResolver.h')
-rw-r--r-- | Swiften/Network/StaticDomainNameResolver.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Swiften/Network/StaticDomainNameResolver.h b/Swiften/Network/StaticDomainNameResolver.h index 0e877d3..d7e7ba4 100644 --- a/Swiften/Network/StaticDomainNameResolver.h +++ b/Swiften/Network/StaticDomainNameResolver.h @@ -19,6 +19,8 @@ namespace Swift { typedef std::vector< std::pair<String, DomainNameServiceQuery::Result> > ServicesCollection; public: + StaticDomainNameResolver(); + void addAddress(const String& domain, const HostAddress& address); void addService(const String& service, const DomainNameServiceQuery::Result& result); void addXMPPClientService(const String& domain, const HostAddressPort&); @@ -31,10 +33,19 @@ namespace Swift { return services; } + bool getIsResponsive() const { + return isResponsive; + } + + void setIsResponsive(bool b) { + isResponsive = b; + } + virtual boost::shared_ptr<DomainNameServiceQuery> createServiceQuery(const String& name); virtual boost::shared_ptr<DomainNameAddressQuery> createAddressQuery(const String& name); private: + bool isResponsive; AddressesMap addresses; ServicesCollection services; }; |