diff options
author | fredk <fredk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-21 21:50:58 +0000 |
---|---|---|
committer | fredk <fredk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-21 21:50:58 +0000 |
commit | 805bcd791be0d59cef1b85a4d585c258ed81d701 (patch) | |
tree | ff35d9da6b1015892efc62a12781b91f2e6cb008 | |
parent | 36aab87731f4db61a9286450339f275109851032 (diff) | |
download | ATCD-805bcd791be0d59cef1b85a4d585c258ed81d701.tar.gz |
Get host name and port number from orb core rather then use
get_local_address. This is an optimization to get around DNS lookups.
-rw-r--r-- | TAO/tao/IIOP_Acceptor.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/TAO/tao/IIOP_Acceptor.cpp b/TAO/tao/IIOP_Acceptor.cpp index 3d6736f0907..8aeb35c7678 100644 --- a/TAO/tao/IIOP_Acceptor.cpp +++ b/TAO/tao/IIOP_Acceptor.cpp @@ -40,10 +40,15 @@ int TAO_IIOP_Acceptor::create_mprofile (const TAO_ObjectKey &object_key, TAO_MProfile *&mprofile) { - ACE_INET_Addr new_address; - if (base_acceptor_.acceptor ().get_local_addr (new_address) == -1) - return 0; + // @@ For now we use teh IIOP address that has been + // stored away in the ORB core. This is an optimization to get + // around DNS lookups! + // ACE_INET_Addr new_address; + // if (base_acceptor_.acceptor ().get_local_addr (new_address) == -1) + // return 0; + ACE_INET_Addr new_address (orb_params->addr ().get_port_number (), + orb_params->host ()); // we only make one int count = mprofile->profile_count (); |