blob: d6320587c5357dd1e348f7997d2bc4ad3d587bae (
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
28
29
30
|
#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_;
}
bool operator==(const HostAddressPort& o) const {
return address_ == o.address_ && port_ == o.port_;
}
private:
HostAddress address_;
int port_;
};
}
#endif
|