diff options
Diffstat (limited to 'TAO/tao/Reactive_Connect_Strategy.h')
-rw-r--r-- | TAO/tao/Reactive_Connect_Strategy.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/TAO/tao/Reactive_Connect_Strategy.h b/TAO/tao/Reactive_Connect_Strategy.h new file mode 100644 index 00000000000..8898c25e08e --- /dev/null +++ b/TAO/tao/Reactive_Connect_Strategy.h @@ -0,0 +1,55 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file Reactive_Connect_Strategy.h + * + * $Id$ + * + * @author Balachandran Natarajan <bala@cs.wustl.edu> + */ +//============================================================================= + +#ifndef TAO_REACTIVE_CONNECT_STRATEGY_H +#define TAO_REACTIVE_CONNECT_STRATEGY_H +#include "ace/pre.h" + +#include "Connect_Strategy.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class TAO_Connector; +class ACE_Time_Value; +class ACE_Synch_Options; + +/** + * @class TAO_Reactive_Connect_Strategy + * + * @brief Concrete implementation of a connect strategy that waits on + * the reactor during asynch connects + * + */ +class TAO_Export TAO_Reactive_Connect_Strategy : public TAO_Connect_Strategy +{ +public: + /// Constructor + TAO_Reactive_Connect_Strategy (TAO_ORB_Core *orb); + + /// Destructor + ~TAO_Reactive_Connect_Strategy (void); + + /* + * Concrete implementation for this class. Please see + * Connect_Strategy.h for details + */ + virtual void synch_options (ACE_Time_Value *val, + ACE_Synch_Options &opt); + + virtual int wait (TAO_Connection_Handler *ch, + ACE_Time_Value *val); +}; + + +#endif /*TAO_REACTIVE_CONNECT_STRATEGY_H*/ |