00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Blocked_Connect_Strategy.h 00006 * 00007 * $Id: Blocked_Connect_Strategy.h 73141 2006-06-20 06:07:59Z jwillemsen $ 00008 * 00009 * @author Balachandran Natarajan <bala@cs.wustl.edu> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_BLOCKED_CONNECT_STRATEGY_H 00014 #define TAO_BLOCKED_CONNECT_STRATEGY_H 00015 #include /**/ "ace/pre.h" 00016 00017 #include "tao/Connect_Strategy.h" 00018 00019 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00020 # pragma once 00021 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00022 00023 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00024 00025 /** 00026 * @class TAO_Blocked_Connect_Strategy 00027 * 00028 * @brief Concrete implementation of a connect strategy that blocks 00029 * during connects 00030 * 00031 */ 00032 class TAO_Export TAO_Blocked_Connect_Strategy : public TAO_Connect_Strategy 00033 { 00034 public: 00035 /// Constructor 00036 TAO_Blocked_Connect_Strategy (TAO_ORB_Core *orb); 00037 00038 /* 00039 * Concrete implementation for this class. Please see 00040 * Connect_Strategy.h for details 00041 */ 00042 virtual void synch_options (ACE_Time_Value *val, 00043 ACE_Synch_Options &opt); 00044 00045 protected: 00046 virtual int wait_i (TAO_LF_Event *ev, 00047 TAO_Transport *t, 00048 ACE_Time_Value *val); 00049 00050 }; 00051 00052 TAO_END_VERSIONED_NAMESPACE_DECL 00053 00054 #include /**/ "ace/post.h" 00055 #endif /*TAO_BLOCKED_CONNECT_STRATEGY_H*/