summaryrefslogtreecommitdiff
path: root/TAO/tao/ORB_Core.cpp
diff options
context:
space:
mode:
authormcorino <mcorino@users.noreply.github.com>2005-08-30 09:25:04 +0000
committermcorino <mcorino@users.noreply.github.com>2005-08-30 09:25:04 +0000
commit6b40438d3d10232fae7bfde50e28bdcc5dfe8659 (patch)
tree58ce2933343d5d2921588b608a810676ac8dec83 /TAO/tao/ORB_Core.cpp
parent4c4baf53663a10ae394e1d61b976523475d0ec89 (diff)
downloadATCD-6b40438d3d10232fae7bfde50e28bdcc5dfe8659.tar.gz
ChangeLogTag: Tue Aug 30 09:12:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
Diffstat (limited to 'TAO/tao/ORB_Core.cpp')
-rw-r--r--TAO/tao/ORB_Core.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/TAO/tao/ORB_Core.cpp b/TAO/tao/ORB_Core.cpp
index f16af4401e7..0fde05c0663 100644
--- a/TAO/tao/ORB_Core.cpp
+++ b/TAO/tao/ORB_Core.cpp
@@ -569,6 +569,32 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
+#if defined (ACE_HAS_IPV6)
+ else if ((current_arg = arg_shifter.get_the_parameter
+ (ACE_TEXT("-ORBPreferIPV6Interfaces"))))
+ {
+ if (ACE_OS::strcasecmp (current_arg,
+ ACE_TEXT("YES")) == 0)
+ this->orb_params ()->prefer_ipv6_interfaces (true);
+ else if (ACE_OS::strcasecmp (current_arg,
+ ACE_TEXT("NO")) == 0)
+ this->orb_params ()->prefer_ipv6_interfaces (false);
+
+ arg_shifter.consume_arg ();
+ }
+ else if ((current_arg = arg_shifter.get_the_parameter
+ (ACE_TEXT("-ORBConnectIPV6Only"))))
+ {
+ if (ACE_OS::strcasecmp (current_arg,
+ ACE_TEXT("YES")) == 0)
+ this->orb_params ()->connect_ipv6_only (true);
+ else if (ACE_OS::strcasecmp (current_arg,
+ ACE_TEXT("NO")) == 0)
+ this->orb_params ()->connect_ipv6_only (false);
+
+ arg_shifter.consume_arg ();
+ }
+#endif /* ACE_HAS_IPV6 */
else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBCDRTradeoff"))))
{