3 // ===================================================================
5 * @file UIOP_Transport.h
7 * @author Originally by Fred Kuhns <fredk@cs.wustl.edu>
8 * @author Ossama Othman <ossama@ece.uci.edu>
9 * @author Modified by Balachandran Natarajan <bala@cs.wustl.edu>
11 // ===================================================================
13 #ifndef TAO_UIOP_TRANSPORT_H
14 #define TAO_UIOP_TRANSPORT_H
16 #include /**/ "ace/pre.h"
18 #include "tao/orbconf.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 # if TAO_HAS_UIOP == 1
26 #include "tao/Strategies/strategies_export.h"
27 #include "ace/LSOCK_Acceptor.h"
28 #include "ace/Svc_Handler.h"
29 #include "tao/Transport.h"
31 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
36 class TAO_UIOP_Connection_Handler
;
38 typedef ACE_Svc_Handler
<ACE_LSOCK_STREAM
, ACE_NULL_SYNCH
>
42 * @class TAO_UIOP_Transport
44 * @brief Specialization of the base TAO_Transport class to handle the
48 class TAO_Strategies_Export TAO_UIOP_Transport
: public TAO_Transport
52 TAO_UIOP_Transport (TAO_UIOP_Connection_Handler
*handler
,
53 TAO_ORB_Core
*orb_core
);
55 /// Default destructor.
56 ~TAO_UIOP_Transport ();
59 /** @name Overridden Template Methods
61 * These are implementations of template methods declared by TAO_Transport.
64 virtual ACE_Event_Handler
* event_handler_i ();
65 virtual TAO_Connection_Handler
*connection_handler_i ();
67 /// Write the complete Message_Block chain to the connection.
68 virtual ssize_t
send (iovec
*iov
, int iovcnt
,
69 size_t &bytes_transferred
,
70 const ACE_Time_Value
*timeout
= 0);
72 /// Read len bytes from into buf.
73 virtual ssize_t
recv (char *buf
,
75 const ACE_Time_Value
*s
= 0);
78 /// @todo These methods IMHO should have more meaningful names.
79 /// The names seem to indicate nothing.
80 virtual int send_request (TAO_Stub
*stub
,
81 TAO_ORB_Core
*orb_core
,
82 TAO_OutputCDR
&stream
,
83 TAO_Message_Semantics message_semantics
,
84 ACE_Time_Value
*max_wait_time
);
86 virtual int send_message (TAO_OutputCDR
&stream
,
88 TAO_ServerRequest
*request
= 0,
89 TAO_Message_Semantics message_semantics
= TAO_Message_Semantics (),
90 ACE_Time_Value
*max_time_wait
= 0);
94 /// The connection service handler used for accessing lower layer
95 /// communication protocols.
96 TAO_UIOP_Connection_Handler
*connection_handler_
;
99 TAO_END_VERSIONED_NAMESPACE_DECL
101 # endif /* TAO_HAS_UIOP == 1 */
103 #include /**/ "ace/post.h"
105 #endif /* TAO_UIOP_TRANSPORT_H */