diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-09-09 01:07:26 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-09-09 01:07:26 +0000 |
commit | 4f2c56cec3bf861f2d47489bd952afc50d2fc27a (patch) | |
tree | 5fa0268c8216c555da86c4cb60f7cfa4035e281a /TAO/tests/Bug_1269_Regression/Server_Timer.h | |
parent | 9aea408730cf5a04579f9ebe8f798632df025257 (diff) | |
download | ATCD-4f2c56cec3bf861f2d47489bd952afc50d2fc27a.tar.gz |
Sun Sep 8 21:04:45 2002 Carlos O'Ryan <coryan@atdesk.com>
Diffstat (limited to 'TAO/tests/Bug_1269_Regression/Server_Timer.h')
-rw-r--r-- | TAO/tests/Bug_1269_Regression/Server_Timer.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/TAO/tests/Bug_1269_Regression/Server_Timer.h b/TAO/tests/Bug_1269_Regression/Server_Timer.h new file mode 100644 index 00000000000..6943d2031a4 --- /dev/null +++ b/TAO/tests/Bug_1269_Regression/Server_Timer.h @@ -0,0 +1,39 @@ +/** + * @file + * + * $Id$ + * + * @author Carlos O'Ryan <coryan@atdesk.com> + * + */ + +#ifndef Server_Timer__h_ +#define Server_Timer__h_ +#include "ace/pre.h" + +#include "TestC.h" +#include "ace/Event_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class Server_Timer : public ACE_Event_Handler +{ +public: + /// Constructor + Server_Timer (Test::Echo_ptr echo, ACE_Reactor * reactor); + + void activate (void); + + /// Thread entry point + int handle_timeout(ACE_Time_Value const & tv, void const *); + int handle_close (ACE_HANDLE, ACE_Reactor_Mask); + +private: + /// Reference to the test interface + Test::Echo_var echo_; +}; + +#include "ace/post.h" +#endif /* Server_Timer__h_ */ |