summaryrefslogtreecommitdiff
path: root/TAO/tao
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2014-10-08 20:52:48 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2014-10-08 20:52:48 +0000
commitb54917e67aead3592cb931ea2566c15a4d93a0de (patch)
tree4b5dd38c152f5cdf11841f933d518116e00e3cc5 /TAO/tao
parent79d960caf5e3b235ee0630549ac97fce91ead8df (diff)
downloadATCD-b54917e67aead3592cb931ea2566c15a4d93a0de.tar.gz
Wed Oct 8 20:14:18 UTC 2014 Phil Mesnier <mesnier_p@ociweb.com>
* tao/IIOP_Connector.cpp: * tao/ORB_Core.cpp: * tao/params.h: * tao/params.inl: New feature added to constrain client ORBs using IIOP to only use local TCP ports spanning a supplied range. Use new ORB_init parameters -ORBIIOPClientPortBase <base> and -ORBIIOPClientPortSpan <count> to specify a range from base to base + count. A base supplied without a span indicates the client may use only a single port. A span supplied without a base is silently ignored. * tests/ClientPortSpan: * bin/tao_orb_tests.lst: New test to validate and demonstrate the new feature.
Diffstat (limited to 'TAO/tao')
-rw-r--r--TAO/tao/params.inl25
1 files changed, 25 insertions, 0 deletions
diff --git a/TAO/tao/params.inl b/TAO/tao/params.inl
index a3e5c6ed86a..e607d6f7588 100644
--- a/TAO/tao/params.inl
+++ b/TAO/tao/params.inl
@@ -211,6 +211,31 @@ TAO_ORB_Parameters::ip_multicastloop (bool x)
this->ip_multicastloop_ = x;
}
+ACE_INLINE u_short
+TAO_ORB_Parameters::iiop_client_port_base (void)
+{
+ return this->iiop_client_port_base_;
+}
+
+ACE_INLINE void
+TAO_ORB_Parameters::iiop_client_port_base (u_short b)
+{
+ this->iiop_client_port_base_ = b;
+}
+
+ACE_INLINE u_short
+TAO_ORB_Parameters::iiop_client_port_span (void)
+{
+ return this->iiop_client_port_base_ ?
+ this->iiop_client_port_span_ : 0;
+}
+
+ACE_INLINE void
+TAO_ORB_Parameters::iiop_client_port_span (u_short s)
+{
+ this->iiop_client_port_span_ = s;
+}
+
ACE_INLINE int
TAO_ORB_Parameters::ace_sched_policy (void) const
{