diff options
Diffstat (limited to 'TAO/tao/Wait_On_Read.h')
-rw-r--r-- | TAO/tao/Wait_On_Read.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/TAO/tao/Wait_On_Read.h b/TAO/tao/Wait_On_Read.h new file mode 100644 index 00000000000..53cc2bd0e5e --- /dev/null +++ b/TAO/tao/Wait_On_Read.h @@ -0,0 +1,47 @@ +// This may look like C, but it's really -*- C++ -*- +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO +// +// = AUTHOR +// Alexander Babu Arulanthu <alex@cs.wustl.edu> +// +// ============================================================================ + +#ifndef TAO_WAIT_ON_READ_H +#define TAO_WAIT_ON_READ_H +#include "ace/pre.h" + +#include "tao/Wait_Strategy.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class TAO_Export TAO_Wait_On_Read : public TAO_Wait_Strategy +{ + // = TITLE + // + // = DESCRIPTION + // Simply block on read() to wait for the reply. + // + +public: + TAO_Wait_On_Read (TAO_Transport *transport); + // Constructor. + + virtual ~TAO_Wait_On_Read (void); + // Destructor. + + // = Documented in TAO_Wait_Strategy. + + virtual int wait (ACE_Time_Value *max_wait_time, + int &reply_received); + virtual int register_handler (void); +}; + +#include "ace/post.h" +#endif /* TAO_WAIT_ON_READ_H */ |