summaryrefslogtreecommitdiff
path: root/TAO/tao/Transport.h
diff options
context:
space:
mode:
authorChris Cleeland <chris.cleeland@gmail.com>2004-08-19 21:57:54 +0000
committerChris Cleeland <chris.cleeland@gmail.com>2004-08-19 21:57:54 +0000
commit728177f8f47c977056f31bd96131551967e9f777 (patch)
tree2c94496784d8eea435127e23d9f195cf2372f268 /TAO/tao/Transport.h
parent0e74c7406fc00c4c8640c3f41c7dfde1b3ad41bc (diff)
downloadATCD-728177f8f47c977056f31bd96131551967e9f777.tar.gz
Thu Aug 19 16:49:24 2004 Chris Cleeland <cleeland_c@ociweb.com>
Added Wait_On_LF_NoUpcall wait strategy.
Diffstat (limited to 'TAO/tao/Transport.h')
-rw-r--r--TAO/tao/Transport.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/TAO/tao/Transport.h b/TAO/tao/Transport.h
index 63011bbeb23..4c1ec16ccea 100644
--- a/TAO/tao/Transport.h
+++ b/TAO/tao/Transport.h
@@ -43,6 +43,13 @@ class TAO_Resume_Handle;
class TAO_Stub;
struct iovec;
+enum TAO_Connection_Role
+{
+ TAO_UNSPECIFIED_ROLE = 0,
+ TAO_SERVER_ROLE = 1,
+ TAO_CLIENT_ROLE = 2,
+};
+
/**
* @class TAO_Transport
*
@@ -277,6 +284,23 @@ public:
size_t id (void) const;
void id (size_t id);
+ /**
+ * Methods dealing with the role of the connection, e.g., CLIENT or SERVER.
+ * See CORBA 2.6 Specification, Section 15.5.1 for origin of definitions.
+ */
+ TAO_Connection_Role opened_as (void) const;
+ void opened_as (TAO_Connection_Role);
+
+ /**
+ * Predicate that returns true if it is valid for this transport to act in a server
+ * role. This would, for example, be true if opened_as() == TAO_SERVER_ROLE
+ * or bidirectional_flag() == 1.
+ *
+ * \return 0 cannot act in server role
+ * \return 1 can acts in server role
+ */
+ int acts_as_server (void) const;
+
/// Get and Set the purging order. The purging strategy uses the set
/// version to set the purging order.
unsigned long purging_order (void) const;
@@ -870,6 +894,8 @@ protected:
*/
int bidirectional_flag_;
+ TAO_Connection_Role opening_connection_role_;
+
/// Implement the outgoing data queue
TAO_Queued_Message *head_;
TAO_Queued_Message *tail_;