diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-04-07 18:52:52 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-04-07 18:52:52 (GMT) |
commit | 8fc68f601b92dc4d0fa378c1d9fa2114e379f7ce (patch) | |
tree | 34848a87fdaa6bfd398a5bbce0245d2df6a57d71 /Swiften/Network/StaticDomainNameResolver.h | |
parent | 725c4e1ad0710606421f9705d994688116a9fc1f (diff) | |
download | swift-contrib-8fc68f601b92dc4d0fa378c1d9fa2114e379f7ce.zip swift-contrib-8fc68f601b92dc4d0fa378c1d9fa2114e379f7ce.tar.bz2 |
Add support for multiple A entries to StaticDomainNameResolver.
Diffstat (limited to 'Swiften/Network/StaticDomainNameResolver.h')
-rw-r--r-- | Swiften/Network/StaticDomainNameResolver.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swiften/Network/StaticDomainNameResolver.h b/Swiften/Network/StaticDomainNameResolver.h index d7e7ba4..2428d29 100644 --- a/Swiften/Network/StaticDomainNameResolver.h +++ b/Swiften/Network/StaticDomainNameResolver.h @@ -15,7 +15,7 @@ namespace Swift { class StaticDomainNameResolver : public DomainNameResolver { public: - typedef std::map<String, HostAddress> AddressesMap; + typedef std::map<String, std::vector<HostAddress> > AddressesMap; typedef std::vector< std::pair<String, DomainNameServiceQuery::Result> > ServicesCollection; public: @@ -24,6 +24,7 @@ namespace Swift { void addAddress(const String& domain, const HostAddress& address); void addService(const String& service, const DomainNameServiceQuery::Result& result); void addXMPPClientService(const String& domain, const HostAddressPort&); + void addXMPPClientService(const String& domain, const String& host, int port); const AddressesMap& getAddresses() const { return addresses; |