summaryrefslogtreecommitdiff
path: root/TAO/tao/Transport_Mux_Strategy.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-04 17:03:52 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-04 17:03:52 +0000
commitf9f0e9cbef284346dd4baf9484c65fba1c046fa1 (patch)
treecc581037c280c97ef1c233d0ce2d3bbb0b89a77f /TAO/tao/Transport_Mux_Strategy.h
parent6d27093d1ac6828621a28997610ac8d5a4fa9520 (diff)
downloadATCD-f9f0e9cbef284346dd4baf9484c65fba1c046fa1.tar.gz
ChangeLogTag:Wed Aug 4 12:02:45 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Transport_Mux_Strategy.h')
-rw-r--r--TAO/tao/Transport_Mux_Strategy.h37
1 files changed, 21 insertions, 16 deletions
diff --git a/TAO/tao/Transport_Mux_Strategy.h b/TAO/tao/Transport_Mux_Strategy.h
index 6c13a03e73d..ee06d1b9349 100644
--- a/TAO/tao/Transport_Mux_Strategy.h
+++ b/TAO/tao/Transport_Mux_Strategy.h
@@ -43,7 +43,7 @@ class TAO_Export TAO_Transport_Mux_Strategy
//
public:
- TAO_Transport_Mux_Strategy (void);
+ TAO_Transport_Mux_Strategy (TAO_Transport *transport);
// Base class constructor.
virtual ~TAO_Transport_Mux_Strategy (void);
@@ -57,8 +57,9 @@ public:
// pairs.
virtual int bind_dispatcher (CORBA::ULong request_id,
- TAO_Reply_Dispatcher *rd) = 0;
- // Bind the dispatcher with the request id.
+ TAO_Reply_Dispatcher *rd);
+ // Bind the dispatcher with the request id. Commonalities in the
+ // derived class implementations is kept here.
virtual int dispatch_reply (CORBA::ULong request_id,
CORBA::ULong reply_status,
@@ -77,19 +78,23 @@ public:
virtual void destroy_message_state (TAO_GIOP_Message_State *) = 0;
// Destroy a CDR stream.
-
- virtual int idle_after_send (TAO_Transport *) = 0;
+
+ virtual int idle_after_send (void) = 0;
// Request has been just sent, but the reply is not received. Idle
// the transport now.
- virtual int idle_after_reply (TAO_Transport *) = 0;
+ // virtual int idle_after_reply (void) = 0;
// Request is sent and the reply is received. Idle the transport
// now.
- virtual int reply_received (const CORBA::ULong request_id) = 0;
+ // virtual int reply_received (const CORBA::ULong request_id) = 0;
// Check whether the reply has been receieved for the request with
// <request_id>. Return 0 if no, 1 on yes and -1 if the request_id
// is invalid or there are some errors.
+
+protected:
+ TAO_Transport *transport_;
+ // Cache the transport reference.
};
// *********************************************************************
@@ -104,7 +109,7 @@ class TAO_Export TAO_Exclusive_TMS : public TAO_Transport_Mux_Strategy
//
public:
- TAO_Exclusive_TMS (TAO_ORB_Core *orb_core);
+ TAO_Exclusive_TMS (TAO_Transport *transport);
// Constructor.
virtual ~TAO_Exclusive_TMS (void);
@@ -132,15 +137,15 @@ public:
virtual void destroy_message_state (TAO_GIOP_Message_State *);
// No op in this strategy.
- virtual int idle_after_send (TAO_Transport *transport);
+ virtual int idle_after_send (void);
// Request has been just sent, but the reply is not received. Idle
// the transport now.
- virtual int idle_after_reply (TAO_Transport *transport);
+ // virtual int idle_after_reply (void);
// Request is sent and the reply is received. Idle the transport
// now.
-
- virtual int reply_received (const CORBA::ULong request_id);
+
+ // virtual int reply_received (const CORBA::ULong request_id);
// Check whether the reply has been receieved for the request with
// <request_id>. Return 0 if no, 1 on yes and -1 if the request_id
// is invalid or there are errors.
@@ -172,7 +177,7 @@ class TAO_Export TAO_Muxed_TMS : public TAO_Transport_Mux_Strategy
//
public:
- TAO_Muxed_TMS (TAO_ORB_Core *orb_core);
+ TAO_Muxed_TMS (TAO_Transport *transport);
// Constructor.
virtual ~TAO_Muxed_TMS (void);
@@ -200,15 +205,15 @@ public:
virtual void destroy_message_state (TAO_GIOP_Message_State *);
// No op in this strategy.
- virtual int idle_after_send (TAO_Transport *transport);
+ virtual int idle_after_send (void);
// Request has been just sent, but the reply is not received. Idle
// the transport now.
- virtual int idle_after_reply (TAO_Transport *transport);
+ // virtual int idle_after_reply (void);
// Request is sent and the reply is received. Idle the transport
// now.
- virtual int reply_received (const CORBA::ULong request_id);
+ // virtual int reply_received (const CORBA::ULong request_id);
// Check whether the reply has been receieved for the request with
// <request_id>. Return 0 if no, 1 on yes and -1 if the request_id
// is invalid or there are errors.