1 #include "tao/Strategies/COIOP_Transport.h"
3 #if defined (TAO_HAS_COIOP) && (TAO_HAS_COIOP != 0)
5 #include "tao/Strategies/COIOP_Connection_Handler.h"
6 #include "tao/Strategies/COIOP_Acceptor.h"
7 #include "tao/Strategies/COIOP_Profile.h"
8 #include "tao/Acceptor_Registry.h"
9 #include "tao/operation_details.h"
10 #include "tao/Timeprobe.h"
12 #include "tao/Transport_Mux_Strategy.h"
13 #include "tao/Wait_Strategy.h"
15 #include "tao/ORB_Core.h"
16 #include "tao/debug.h"
17 #include "tao/Resume_Handle.h"
18 #include "tao/GIOP_Message_Base.h"
20 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
22 TAO_COIOP_Transport::TAO_COIOP_Transport (TAO_COIOP_Connection_Handler
*handler
,
23 TAO_ORB_Core
*orb_core
)
24 : TAO_Transport (TAO_TAG_COIOP_PROFILE
,
26 , connection_handler_ (handler
)
31 TAO_COIOP_Transport::event_handler_i ()
33 return this->connection_handler_
;
36 TAO_Connection_Handler
*
37 TAO_COIOP_Transport::connection_handler_i ()
39 return this->connection_handler_
;
43 TAO_COIOP_Transport::send (iovec
*,
45 size_t &bytes_transferred
,
46 const ACE_Time_Value
*)
48 // We don't send data over the wire with COIOP
49 bytes_transferred
= 0;
55 TAO_COIOP_Transport::recv (char *, size_t , const ACE_Time_Value
*)
61 TAO_COIOP_Transport::handle_input (TAO_Resume_Handle
&,
69 TAO_COIOP_Transport::register_handler ()
71 // We do never register register the handler with the reactor
72 // as we never need to be informed about any incoming data,
73 // assuming we only use one-ways.
74 // If we would register and ICMP Messages would arrive, e.g
75 // due to a not reachable server, we would get informed - as this
76 // disturbs the general COIOP assumptions of not being
77 // interested in any network failures, we ignore ICMP messages.
83 TAO_COIOP_Transport::send_request (TAO_Stub
*,
86 TAO_Message_Semantics
,
93 TAO_COIOP_Transport::send_message (TAO_OutputCDR
&,
96 TAO_Message_Semantics
,
103 TAO_COIOP_Transport::send_message_shared (TAO_Stub
*,
104 TAO_Message_Semantics
,
105 const ACE_Message_Block
*,
111 TAO_END_VERSIONED_NAMESPACE_DECL
113 #endif /* TAO_HAS_COIOP && TAO_HAS_COIOP != 0 */