summaryrefslogtreecommitdiff
path: root/TAO/tao/Blocked_Connect_Strategy.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Blocked_Connect_Strategy.h')
-rw-r--r--TAO/tao/Blocked_Connect_Strategy.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/TAO/tao/Blocked_Connect_Strategy.h b/TAO/tao/Blocked_Connect_Strategy.h
new file mode 100644
index 00000000000..9e140e316ec
--- /dev/null
+++ b/TAO/tao/Blocked_Connect_Strategy.h
@@ -0,0 +1,55 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Blocked_Connect_Strategy.h
+ *
+ * $Id$
+ *
+ * @author Balachandran Natarajan <bala@cs.wustl.edu>
+ */
+//=============================================================================
+
+#ifndef TAO_BLOCKED_CONNECT_STRATEGY_H
+#define TAO_BLOCKED_CONNECT_STRATEGY_H
+#include /**/ "ace/pre.h"
+
+#include "tao/Connect_Strategy.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+/**
+ * @class TAO_Blocked_Connect_Strategy
+ *
+ * @brief Concrete implementation of a connect strategy that blocks
+ * during connects
+ *
+ */
+class TAO_Export TAO_Blocked_Connect_Strategy : public TAO_Connect_Strategy
+{
+public:
+ /// Constructor
+ TAO_Blocked_Connect_Strategy (TAO_ORB_Core *orb);
+
+ /*
+ * Concrete implementation for this class. Please see
+ * Connect_Strategy.h for details
+ */
+ virtual void synch_options (ACE_Time_Value *val,
+ ACE_Synch_Options &opt);
+
+protected:
+ virtual int wait_i (TAO_LF_Event *ev,
+ TAO_Transport *t,
+ ACE_Time_Value *val);
+
+};
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#include /**/ "ace/post.h"
+#endif /*TAO_BLOCKED_CONNECT_STRATEGY_H*/