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:
@ -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();
|
||||
|
Reference in New Issue
Block a user