summaryrefslogtreecommitdiffstats
blob: 8668ae4dd61eea08736b8367261fbedc21b9a4ff (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
#ifndef SWIFTEN_HostAddressPort_H
#define SWIFTEN_HostAddressPort_H

#include "Swiften/Network/HostAddress.h"

namespace Swift {
	class HostAddressPort {
		public:
			HostAddressPort(const HostAddress& address, int port) : address_(address), port_(port) {
			}

			const HostAddress& getAddress() const {
				return address_;
			}

			int getPort() const {
				return port_;
			}

		private:
			HostAddress address_;
			int port_;
	};
}

#endif