(svn r16134) -Change: do not add duplicates to the broadcast list

This commit is contained in:
rubidium
2009-04-24 10:33:16 +00:00
parent d21f406b03
commit 5db32d1dc5
2 changed files with 17 additions and 4 deletions

View File

@@ -207,6 +207,15 @@ public:
{
return const_cast<NetworkAddress*>(this)->CompareTo(address) == 0;
}
/**
* Compare the address of this class with the address of another.
* @param address the other address.
* @return true if both do not match.
*/
bool operator != (NetworkAddress address) const
{
return const_cast<NetworkAddress*>(this)->CompareTo(address) != 0;
}
/**
* Compare the address of this class with the address of another.