blob: c7736b1a6088edbd3813fb709a5d4c90c50e58d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef SWIFTEN_DOMAINNAMERESOLVER_H
#define SWIFTEN_DOMAINNAMERESOLVER_H
#include <string>
#include "Swiften/Base/String.h"
#include "Swiften/Network/HostAddress.h"
#include "Swiften/Network/HostAddressPort.h"
namespace Swift {
class String;
class DomainNameResolver {
public:
DomainNameResolver();
virtual ~DomainNameResolver();
HostAddressPort resolve(const String& domain);
private:
virtual HostAddressPort resolveDomain(const std::string& domain);
HostAddressPort resolveXMPPService(const std::string& domain);
HostAddress resolveHostName(const std::string& hostName);
};
}
#endif
|