1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Add an operator== to plNetAddress.

This commit is contained in:
Darryl Pogue
2012-03-12 21:04:27 -07:00
parent e770beb73d
commit 4b3d4a0d83
4 changed files with 8 additions and 15 deletions

View File

@ -79,6 +79,13 @@ public:
plNetAddress(const char* addr, uint16_t port);
virtual ~plNetAddress(){}
bool operator==(const plNetAddress& other) const {
return (GetHost() == other.GetHost()) && (GetPort() == other.GetPort());
}
bool operator!=(const plNetAddress& other) const {
return !(*this == other);
}
void Clear();
bool SetAnyAddr();