blob: 86884299cf348b20165e9b7189a2518115b9de9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <vector>
#include <map>
#include "Swiften/Network/DomainNameResolver.h"
namespace Swift {
class String;
class StaticDomainNameResolver : public DomainNameResolver {
public:
StaticDomainNameResolver();
virtual std::vector<HostAddressPort> resolve(const String& domain);
void addDomain(const String& domain, const HostAddressPort& addressPort);
private:
typedef std::vector< std::pair<String, HostAddressPort> > DomainCollection;
DomainCollection domains;
};
}
|