Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Strategies / COIOP_Transport.cpp
blob7193425865837451299c4eae816379542b1c55fa
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"
11 #include "tao/CDR.h"
12 #include "tao/Transport_Mux_Strategy.h"
13 #include "tao/Wait_Strategy.h"
14 #include "tao/Stub.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,
25 orb_core)
26 , connection_handler_ (handler)
30 ACE_Event_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_;
42 ssize_t
43 TAO_COIOP_Transport::send (iovec *,
44 int ,
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;
51 return 1;
54 ssize_t
55 TAO_COIOP_Transport::recv (char *, size_t , const ACE_Time_Value *)
57 return 0;
60 int
61 TAO_COIOP_Transport::handle_input (TAO_Resume_Handle &,
62 ACE_Time_Value *)
64 return 0;
68 int
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.
78 return 0;
82 int
83 TAO_COIOP_Transport::send_request (TAO_Stub *,
84 TAO_ORB_Core *,
85 TAO_OutputCDR &,
86 TAO_Message_Semantics,
87 ACE_Time_Value *)
89 return 0;
92 int
93 TAO_COIOP_Transport::send_message (TAO_OutputCDR &,
94 TAO_Stub *,
95 TAO_ServerRequest *,
96 TAO_Message_Semantics,
97 ACE_Time_Value *)
99 return 1;
103 TAO_COIOP_Transport::send_message_shared (TAO_Stub *,
104 TAO_Message_Semantics,
105 const ACE_Message_Block *,
106 ACE_Time_Value *)
108 return 1;
111 TAO_END_VERSIONED_NAMESPACE_DECL
113 #endif /* TAO_HAS_COIOP && TAO_HAS_COIOP != 0 */