summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp4
-rw-r--r--TAO/tao/Strategies/SCIOP_Acceptor.cpp6
2 files changed, 4 insertions, 6 deletions
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp
index dc935b3e89e..56e8a2fb68c 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp
@@ -670,7 +670,7 @@ TAO::HTIOP::Acceptor::probe_interfaces (TAO_ORB_Core *orb_core)
// the list of cached hostnames unless it is the only interface.
size_t lo_cnt = 0; // Loopback interface count
for (size_t j = 0; j < if_cnt; ++j)
- if (inet_addrs[j].get_ip_address () == INADDR_LOOPBACK)
+ if (inet_addrs[j].is_loopback ())
lo_cnt++;
// The instantiation for this template is in
@@ -705,7 +705,7 @@ TAO::HTIOP::Acceptor::probe_interfaces (TAO_ORB_Core *orb_core)
// Ignore any loopback interface if there are other
// non-loopback interfaces.
if (if_cnt != lo_cnt &&
- inet_addrs[i].get_ip_address() == INADDR_LOOPBACK)
+ inet_addrs[i].is_loopback ())
continue;
if (this->hostname_in_ior_ != 0)
diff --git a/TAO/tao/Strategies/SCIOP_Acceptor.cpp b/TAO/tao/Strategies/SCIOP_Acceptor.cpp
index b33826598fb..cf4db91fc17 100644
--- a/TAO/tao/Strategies/SCIOP_Acceptor.cpp
+++ b/TAO/tao/Strategies/SCIOP_Acceptor.cpp
@@ -727,7 +727,7 @@ TAO_SCIOP_Acceptor::probe_interfaces (TAO_ORB_Core *orb_core)
// the list of cached hostnames unless it is the only interface.
size_t lo_cnt = 0; // Loopback interface count
for (size_t j = 0; j < if_cnt; ++j)
- if (if_addrs[j].get_ip_address () == INADDR_LOOPBACK)
+ if (if_addrs[j].is_loopback ())
++lo_cnt;
// The instantiation for this template is in
@@ -762,7 +762,7 @@ TAO_SCIOP_Acceptor::probe_interfaces (TAO_ORB_Core *orb_core)
// Ignore any loopback interface if there are other
// non-loopback interfaces.
if (if_cnt != lo_cnt &&
- if_addrs[i].get_ip_address() == INADDR_LOOPBACK)
+ if_addrs[i].is_loopback ())
continue;
if (this->hostname_in_ior_ != 0)
@@ -854,7 +854,6 @@ TAO_SCIOP_Acceptor::parse_multiple_hostnames (const char *hostnames,
return 0;
}
-
CORBA::ULong
TAO_SCIOP_Acceptor::endpoint_count (void)
{
@@ -916,7 +915,6 @@ TAO_SCIOP_Acceptor::object_key (IOP::TaggedProfile &profile,
return 1;
}
-
int
TAO_SCIOP_Acceptor::parse_options (const char *str)
{