diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-03-17 10:17:38 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-03-17 10:17:38 +0000 |
commit | e0df6a4970cb995d5fad1357c1d3179284c7466b (patch) | |
tree | 85106fba4304c6a62b1ed2b789de4747db2fa488 /TAO/tao/IIOP_Transport.cpp | |
parent | 9273aa201123e1335da1f305feb323247ee10d47 (diff) | |
download | ATCD-e0df6a4970cb995d5fad1357c1d3179284c7466b.tar.gz |
Tue Mar 17 10:09:22 UTC 2009 Johnny Willemsen <jwillemsen@remedy.nl>
* orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp:
* orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.h:
* orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.h:
* orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp:
* orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.h:
* tao/BiDir_GIOP/BiDir_Service_Context_Handler.cpp:
* tao/BiDir_GIOP/BiDir_Service_Context_Handler.h:
* tao/Codeset/Codeset_Manager_i.cpp:
* tao/Codeset/Codeset_Manager_i.h:
* tao/Codeset_Manager.h:
* tao/DiffServPolicy/DiffServ_Protocols_Hooks.cpp:
* tao/DiffServPolicy/DiffServ_Protocols_Hooks.h:
* tao/DiffServPolicy/DiffServ_Service_Context_Handler.cpp:
* tao/DiffServPolicy/DiffServ_Service_Context_Handler.h:
* tao/DiffServPolicy/DiffServPolicy_ORBInitializer.cpp:
* tao/GIOP_Message_Base.cpp:
* tao/IIOP_Transport.cpp:
* tao/IIOP_Transport.h:
* tao/IORManipulation/IORManip_IIOP_Filter.cpp:
* tao/LocateRequest_Invocation.cpp:
* tao/Makefile.am:
* tao/Network_Priority_Protocols_Hooks.h:
* tao/ORB_Core.cpp:
* tao/ORB_Core.h:
* tao/Protocols_Hooks.h:
* tao/Remote_Invocation.cpp:
* tao/Remote_Invocation.h:
* tao/RTCORBA/RT_Endpoint_Selector_Factory.h:
* tao/RTCORBA/RT_ORBInitializer.cpp:
* tao/RTCORBA/RT_Protocols_Hooks.cpp:
* tao/RTCORBA/RT_Protocols_Hooks.h:
* tao/RTCORBA/RT_Service_Context_Handler.cpp:
* tao/RTCORBA/RT_Service_Context_Handler.h:
* tao/RTCORBA/RT_Thread_Lane_Resources_Manager.h:
* tao/Service_Context_Handler.h:
* tao/Service_Context_Handler_Registry.cpp:
* tao/Service_Context_Handler_Registry.h:
* tao/Strategies/SCIOP_Transport.cpp:
* tao/Strategies/SCIOP_Transport.h:
* tao/Transport.cpp:
* tao/Transport.h:
* tao/TypeCodeFactory/TypeCodeFactory_i.cpp:
Refactored BiDir/Diffserv/RTCORBA/Codeset support. The service contexts are
now generated by the specific service context handlers. This way the
special RTCORBA/Diffserv hooks are removed from the code, generating
the service contexts is now a generic solution. In the near future
we will also rework the handling of those service contexts. The
generation of the BiDIR service context is now also moved out of the
specific transports
Diffstat (limited to 'TAO/tao/IIOP_Transport.cpp')
-rw-r--r-- | TAO/tao/IIOP_Transport.cpp | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/TAO/tao/IIOP_Transport.cpp b/TAO/tao/IIOP_Transport.cpp index cf746946bdc..79f184cf52b 100644 --- a/TAO/tao/IIOP_Transport.cpp +++ b/TAO/tao/IIOP_Transport.cpp @@ -258,39 +258,10 @@ TAO_IIOP_Transport::send_message (TAO_OutputCDR &stream, } int -TAO_IIOP_Transport::generate_request_header (TAO_Operation_Details &opdetails, - TAO_Target_Specification &spec, - TAO_OutputCDR &msg) -{ - // Check whether we have a Bi Dir IIOP policy set, whether the - // messaging objects are ready to handle bidirectional connections - // and also make sure that we have not recd. or sent any information - // regarding this before... - if (this->orb_core ()->bidir_giop_policy () && - this->messaging_object ()->is_ready_for_bidirectional (msg) && - this->bidirectional_flag () < 0) - { - this->set_bidir_context_info (opdetails); - - // Set the flag to 1 (i.e., originating side) - this->bidirectional_flag (1); - - // At the moment we enable BiDIR giop we have to get a new - // request id to make sure that we follow the even/odd rule - // for request id's. We only need to do this when enabled - // it, after that the Transport Mux Strategy will make sure - // that the rule is followed - opdetails.request_id (this->tms ()->request_id ()); - } - - return TAO_Transport::generate_request_header (opdetails, spec, msg); -} - -int TAO_IIOP_Transport::tear_listen_point_list (TAO_InputCDR &cdr) { CORBA::Boolean byte_order; - if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) + if (!(cdr >> ACE_InputCDR::to_boolean (byte_order))) return -1; cdr.reset_byte_order (static_cast<int> (byte_order)); @@ -322,7 +293,7 @@ TAO_IIOP_Transport::set_bidir_context_info (TAO_Operation_Details &opdetails) ++acceptor) { // Check whether it is an IIOP acceptor - if ((*acceptor)->tag () == IOP::TAG_INTERNET_IOP) + if ((*acceptor)->tag () == this->tag ()) { if (this->get_listen_point (listen_point_list, *acceptor) == -1) { @@ -433,7 +404,7 @@ TAO_IIOP_Transport::get_listen_point ( #endif /* ACE_HAS_IPV6 */ // Get the count of the number of elements - const CORBA::ULong len = listen_point_list.length (); + CORBA::ULong const len = listen_point_list.length (); // Increase the length by 1 listen_point_list.length (len + 1); @@ -447,7 +418,7 @@ TAO_IIOP_Transport::get_listen_point ( if (TAO_debug_level >= 5) { ACE_DEBUG ((LM_DEBUG, - ACE_TEXT("TAO (%P|%t) - Listen_Point_List[%d] = <%s:%d>\n"), + ACE_TEXT("TAO (%P|%t) - Listen_Point_List[%d] = <%C:%d>\n"), len, point.host.in (), point.port)); |