00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file LF_Connect_Strategy.h 00006 * 00007 * LF_Connect_Strategy.h,v 1.13 2006/04/26 17:12:47 mesnier_p Exp 00008 * 00009 * @author Balachandran Natarajan <bala@cs.wustl.edu> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_LF_CONNECT_STRATEGY_H 00014 #define TAO_LF_CONNECT_STRATEGY_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include "tao/Connect_Strategy.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00025 class ACE_Time_Value; 00026 class ACE_Synch_Options; 00027 ACE_END_VERSIONED_NAMESPACE_DECL 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 class TAO_LF_Event; 00032 00033 /** 00034 * @class TAO_LF_Connect_Strategy 00035 * 00036 * @brief Concrete implementation of a connect strategy that waits on 00037 * the leader-follower during asynch connects 00038 */ 00039 00040 class TAO_Export TAO_LF_Connect_Strategy : public TAO_Connect_Strategy 00041 { 00042 public: 00043 /// Constructor 00044 TAO_LF_Connect_Strategy (TAO_ORB_Core *orb); 00045 00046 /// Destructor 00047 ~TAO_LF_Connect_Strategy (void); 00048 00049 /* 00050 * Concrete implementation for this class. Please see 00051 * Connect_Strategy.h for details 00052 */ 00053 virtual void synch_options (ACE_Time_Value *val, 00054 ACE_Synch_Options &opt); 00055 00056 protected: 00057 virtual int wait_i (TAO_LF_Event *ev, 00058 TAO_Transport *t, 00059 ACE_Time_Value *val); 00060 00061 }; 00062 00063 TAO_END_VERSIONED_NAMESPACE_DECL 00064 00065 #include /**/ "ace/post.h" 00066 00067 #endif /*TAO_LF_CONNECT_STRATEGY_H*/