summaryrefslogtreecommitdiff
path: root/TAO/tao/IIOP_Transport.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/IIOP_Transport.h')
-rw-r--r--TAO/tao/IIOP_Transport.h65
1 files changed, 31 insertions, 34 deletions
diff --git a/TAO/tao/IIOP_Transport.h b/TAO/tao/IIOP_Transport.h
index 419c6481fa0..f882ef18ce2 100644
--- a/TAO/tao/IIOP_Transport.h
+++ b/TAO/tao/IIOP_Transport.h
@@ -61,11 +61,29 @@ public:
/// Default destructor.
~TAO_IIOP_Transport (void);
-#if 0
- /// The TAO_Transport methods, please check the documentation in
- /// "tao/Pluggable.h" for more details.
- virtual ACE_HANDLE handle (void);
-#endif
+protected:
+ /** @name Overridden Template Methods
+ *
+ * These are implementations of template methods declared by TAO_Transport.
+ */
+ //@{
+
+ /// Access connection_handler_ as an <code>ACE_Event_Handler</code>.
+ /// Must be called with transport's lock held.
+ virtual ACE_Event_Handler *event_handler_i (void);
+
+ /// Write the complete Message_Block chain to the connection.
+ /// Must be called with transport's lock held.
+ virtual ssize_t send_i (const ACE_Message_Block *mblk,
+ const ACE_Time_Value *s = 0,
+ size_t *bytes_transferred = 0);
+
+
+ /// Read len bytes from into buf.
+ /// Must be called with transport's lock held.
+ virtual ssize_t recv_i (char *buf,
+ size_t len,
+ const ACE_Time_Value *s = 0);
/// Read and process the message from the connection. The processing
/// of the message is done by delegating the work to the underlying
@@ -73,6 +91,13 @@ public:
virtual int read_process_message (ACE_Time_Value *max_time_value = 0,
int block =0);
+ virtual int register_handler_i (void);
+
+ /// Method to do whatever it needs to do when the connection
+ /// handler is being closed and destroyed.
+ virtual void transition_handler_state_i (void);
+
+public:
/// @@TODO: These methods IMHO should have more meaningful
/// names. The names seem to indicate nothing.
virtual int send_request (TAO_Stub *stub,
@@ -111,35 +136,7 @@ public:
/// Open the service context list and process it.
virtual int tear_listen_point_list (TAO_InputCDR &cdr);
-protected:
- /// Method to do whatever it needs to do when the connection
- /// handler is being closed and destroyed.
- virtual void transition_handler_state_i (void);
-
- /// Access connection_handler_ as an <code>ACE_Event_Handler</code>.
- /// Must be called with transport's lock held.
- virtual ACE_Event_Handler *event_handler_i (void);
-
- /// Write the complete Message_Block chain to the connection.
- /// Must be called with transport's lock held.
- virtual ssize_t send_i (const ACE_Message_Block *mblk,
- const ACE_Time_Value *s = 0,
- size_t *bytes_transferred = 0);
-
-
- /// Read len bytes from into buf.
- /// Must be called with transport's lock held.
- virtual ssize_t recv_i (char *buf,
- size_t len,
- const ACE_Time_Value *s = 0);
-
- virtual int register_handler_i (void);
-
-#if 0
- /// Access the connection handler as <code>TAO_Connection_Handler</code>.
- /// Must be called with transport's lock held.
- virtual TAO_Connection_Handler* connection_handler_i (void) const;
-#endif
+ //@}
private: