diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-06-17 16:52:10 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-06-17 16:52:10 +0000 |
commit | 2841ebbf1de5693e19e9a84de0d7389bdfe76686 (patch) | |
tree | a418df529bb8043787603a900405b690ab3c82ad /TAO/tao/IIOP_Endpoint.cpp | |
parent | 51d4e029c0062b7785da6a2a3d8e51b0caa726b9 (diff) | |
download | ATCD-2841ebbf1de5693e19e9a84de0d7389bdfe76686.tar.gz |
ChangeLogTag:Mon Jun 17 12:43:07 2002 Carlos O'Ryan <coryan@atdesk.com>
Diffstat (limited to 'TAO/tao/IIOP_Endpoint.cpp')
-rw-r--r-- | TAO/tao/IIOP_Endpoint.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/TAO/tao/IIOP_Endpoint.cpp b/TAO/tao/IIOP_Endpoint.cpp index ac0279e1f8b..55cc2626a5d 100644 --- a/TAO/tao/IIOP_Endpoint.cpp +++ b/TAO/tao/IIOP_Endpoint.cpp @@ -166,18 +166,16 @@ TAO_IIOP_Endpoint::duplicate (void) CORBA::Boolean TAO_IIOP_Endpoint::is_equivalent (const TAO_Endpoint *other_endpoint) { - TAO_Endpoint *endpt = ACE_const_cast (TAO_Endpoint *, - other_endpoint); + TAO_Endpoint *endpt = + ACE_const_cast (TAO_Endpoint *, other_endpoint); - TAO_IIOP_Endpoint *endpoint = ACE_dynamic_cast (TAO_IIOP_Endpoint *, - endpt); + TAO_IIOP_Endpoint *endpoint = + ACE_dynamic_cast (TAO_IIOP_Endpoint *, endpt); if (endpoint == 0) return 0; - return - (this->port_ == endpoint->port_) - && (this->object_addr_.get_ip_address () == - endpoint->object_addr_.get_ip_address()); + return (this->port_ == endpoint->port_ + && (ACE_OS::strcmp(this->host(), endpoint->host()) == 0)); } CORBA::ULong @@ -187,5 +185,5 @@ TAO_IIOP_Endpoint::hash (void) // thing except that it converts the port from network byte order to // host byte order. As such, this implementation is actually less // costly. - return this->object_addr_.get_ip_address () + this->port_; + return this->object_addr ().get_ip_address () + this->port (); } |