summaryrefslogtreecommitdiffstats
blob: 651bc97125ac2ca18e6b57b08b4f1e6205ba3171 (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
#pragma once

#include <string>
#include <vector>

#include "Swiften/Base/String.h"
#include "Swiften/Network/DomainNameResolver.h"
#include "Swiften/Network/HostAddress.h"
#include "Swiften/Network/HostAddressPort.h"

namespace Swift {
	class String;

	class PlatformDomainNameResolver : public DomainNameResolver {
		public:
			PlatformDomainNameResolver();

			std::vector<HostAddressPort> resolve(const String& domain);

		private:
			std::vector<HostAddressPort> resolveDomain(const std::string& domain);
			std::vector<HostAddressPort> resolveXMPPService(const std::string& domain);
			HostAddress resolveHostName(const std::string& hostName);
	};
}