summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Endpoint.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-12-05 02:20:32 +0000
committerMarc Laukien <marc@zeroc.com>2001-12-05 02:20:32 +0000
commit6e3519f511ce934de6c837f68c9314e80d67524a (patch)
treee9df0d180a79880066019d04a1d1b4e03263c701 /cpp/src/Ice/Endpoint.cpp
parentFix README file. (diff)
downloadice-6e3519f511ce934de6c837f68c9314e80d67524a.tar.bz2
ice-6e3519f511ce934de6c837f68c9314e80d67524a.tar.xz
ice-6e3519f511ce934de6c837f68c9314e80d67524a.zip
operator< for structs
Diffstat (limited to 'cpp/src/Ice/Endpoint.cpp')
-rw-r--r--cpp/src/Ice/Endpoint.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/src/Ice/Endpoint.cpp b/cpp/src/Ice/Endpoint.cpp
index 83a35e0a535..260c1d0a9e6 100644
--- a/cpp/src/Ice/Endpoint.cpp
+++ b/cpp/src/Ice/Endpoint.cpp
@@ -228,7 +228,7 @@ IceInternal::UnknownEndpoint::operator<(const Endpoint& r) const
{
return true;
}
- else if (_rawBytes != p->_rawBytes)
+ else if (p->_rawBytes < _rawBytes)
{
return false;
}
@@ -536,7 +536,7 @@ IceInternal::TcpEndpoint::operator<(const Endpoint& r) const
{
return true;
}
- else if (laddr.sin_addr.s_addr != raddr.sin_addr.s_addr)
+ else if (raddr.sin_addr.s_addr < laddr.sin_addr.s_addr)
{
return false;
}
@@ -545,7 +545,7 @@ IceInternal::TcpEndpoint::operator<(const Endpoint& r) const
{
return true;
}
- else if (_port != p->_port)
+ else if (p->_port < _port)
{
return false;
}
@@ -554,7 +554,7 @@ IceInternal::TcpEndpoint::operator<(const Endpoint& r) const
{
return true;
}
- else if (_timeout != p->_timeout)
+ else if (p->_timeout < _timeout)
{
return false;
}
@@ -848,7 +848,7 @@ IceInternal::SslEndpoint::operator<(const Endpoint& r) const
{
return true;
}
- else if (laddr.sin_addr.s_addr != raddr.sin_addr.s_addr)
+ else if (raddr.sin_addr.s_addr < laddr.sin_addr.s_addr)
{
return false;
}
@@ -857,7 +857,7 @@ IceInternal::SslEndpoint::operator<(const Endpoint& r) const
{
return true;
}
- else if (_port != p->_port)
+ else if (p->_port < _port)
{
return false;
}
@@ -866,7 +866,7 @@ IceInternal::SslEndpoint::operator<(const Endpoint& r) const
{
return true;
}
- else if (_timeout != p->_timeout)
+ else if (p->_timeout < _timeout)
{
return false;
}
@@ -1133,7 +1133,7 @@ IceInternal::UdpEndpoint::operator<(const Endpoint& r) const
{
return true;
}
- else if (laddr.sin_addr.s_addr != raddr.sin_addr.s_addr)
+ else if (raddr.sin_addr.s_addr < laddr.sin_addr.s_addr)
{
return false;
}
@@ -1142,7 +1142,7 @@ IceInternal::UdpEndpoint::operator<(const Endpoint& r) const
{
return true;
}
- else if (_port != p->_port)
+ else if (p->_port < _port)
{
return false;
}