summaryrefslogtreecommitdiff
path: root/TAO/tao/IIOP_Endpoint.i
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2003-06-07 14:03:55 +0000
committerbala <balanatarajan@users.noreply.github.com>2003-06-07 14:03:55 +0000
commitb30238cef6fa0b3e0d37d40a48c3401d649de6d2 (patch)
treef64d3e70a9d65fbc60b65fb536934208d2303c49 /TAO/tao/IIOP_Endpoint.i
parentd29f08923e48aaf06b2fd344a50195895ea5a09e (diff)
downloadATCD-b30238cef6fa0b3e0d37d40a48c3401d649de6d2.tar.gz
ChangeLogTag:Sat Jun 07 08:50:13 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/IIOP_Endpoint.i')
-rw-r--r--TAO/tao/IIOP_Endpoint.i40
1 files changed, 0 insertions, 40 deletions
diff --git a/TAO/tao/IIOP_Endpoint.i b/TAO/tao/IIOP_Endpoint.i
index 896e0142f54..d439be3e94c 100644
--- a/TAO/tao/IIOP_Endpoint.i
+++ b/TAO/tao/IIOP_Endpoint.i
@@ -2,47 +2,7 @@
//
// $Id$
-ACE_INLINE const ACE_INET_Addr &
-TAO_IIOP_Endpoint::object_addr (void) const
-{
- // The object_addr_ is initialized here, rather than at IOR decode
- // time for several reasons:
- // 1. A request on the object may never be invoked.
- // 2. The DNS setup may have changed dynamically.
- // ...etc..
-
- // Double checked locking optimization.
- if (!this->object_addr_set_)
- {
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
- guard,
- this->addr_lookup_lock_,
- this->object_addr_);
-
- if (!this->object_addr_set_)
- {
- if (this->object_addr_.set (this->port_,
- this->host_.in ()) == -1)
- {
- // If this call fails, it most likely due a hostname
- // lookup failure caused by a DNS misconfiguration. If
- // a request is made to the object at the given host and
- // port, then a CORBA::TRANSIENT() exception should be
- // thrown.
- // Invalidate the ACE_INET_Addr. This is used as a flag
- // to denote that ACE_INET_Addr initialization failed.
- this->object_addr_.set_type (-1);
- }
- else
- {
- this->object_addr_set_ = 1;
- }
- }
- }
-
- return this->object_addr_;
-}
ACE_INLINE const char *
TAO_IIOP_Endpoint::host (void) const