mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
29 lines
782 B
C++
29 lines
782 B
C++
#include "stdafx.h"
|
|
|
|
#include "Util/SystemAddress.h"
|
|
|
|
namespace RBX {
|
|
|
|
bool SystemAddress::operator==( const RBX::SystemAddress& right ) const
|
|
{
|
|
return binaryAddress == right.binaryAddress && port == right.port;
|
|
}
|
|
|
|
bool SystemAddress::operator!=( const RBX::SystemAddress& right ) const
|
|
{
|
|
return binaryAddress != right.binaryAddress || port != right.port;
|
|
}
|
|
|
|
bool SystemAddress::operator>( const RBX::SystemAddress& right ) const
|
|
{
|
|
return ( ( binaryAddress > right.binaryAddress ) || ( ( binaryAddress == right.binaryAddress ) && ( port > right.port ) ) );
|
|
}
|
|
|
|
bool SystemAddress::operator<( const RBX::SystemAddress& right ) const
|
|
{
|
|
return ( ( binaryAddress < right.binaryAddress ) || ( ( binaryAddress == right.binaryAddress ) && ( port < right.port ) ) );
|
|
}
|
|
|
|
} // namespace
|
|
|