summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarina <marina@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-12 04:46:54 +0000
committermarina <marina@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-12 04:46:54 +0000
commitc51095e1634427fcab16ed7be5a7bd5ab2f95278 (patch)
treee8424c5c923e5a4d0e1e730629f7cff9fa5a33c9
parent230e39c07c27efc8f5526a1e772820fafb57b6d1 (diff)
downloadATCD-c51095e1634427fcab16ed7be5a7bd5ab2f95278.tar.gz
addr.get_port_number () returns port converted to host byte order. Made changes to account for
that.
-rw-r--r--TAO/tao/ORB.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/TAO/tao/ORB.cpp b/TAO/tao/ORB.cpp
index 7565d94fcc4..0c87f21d2c3 100644
--- a/TAO/tao/ORB.cpp
+++ b/TAO/tao/ORB.cpp
@@ -664,13 +664,8 @@ CORBA_ORB::multicast_query (TAO_Service_ID service_id,
// Figure out what port to listen on for server replies, and convert
// to network byte order.
- mcast_info[0] =
- // Make sure not to convert this into network byte order since
- // it's already in network byte order when it comes back from
- // <get_local_addr>.
- response_addr.get_port_number ();
- mcast_info[1] =
- ACE_HTONS (service_id);
+ mcast_info[0] = ACE_HTONS (response_addr.get_port_number ());
+ mcast_info[1] = ACE_HTONS (service_id);
// Send multicast info to the server.
ssize_t n_bytes = multicast.send (mcast_info,
@@ -728,7 +723,9 @@ CORBA_ORB::multicast_query (TAO_Service_ID service_id,
delete [] buf;
if (TAO_debug_level > 0)
ACE_ERROR_RETURN ((LM_ERROR,
- "Error reading IIOP multicast response!\n"),
+ "Error reading IIOP multicast response!\n"
+ "Errno: %d \n",
+ errno),
0);
}