2 //=============================================================================
4 * @file Reactor_Fairness_Test.h
6 * This file includes template class definitions for the
7 * Reactor_Fairness_Test.cpp program.
9 * @author Steve Huston <shuston@riverace.com>
11 //=============================================================================
14 #ifndef ACE_TESTS_REACTOR_FAIRNESS_TEST_H
15 #define ACE_TESTS_REACTOR_FAIRNESS_TEST_H
17 #include "ace/SOCK_Stream.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "ace/Svc_Handler.h"
28 * @brief Simple class for reading in the data
30 class Read_Handler
: public ACE_Svc_Handler
<ACE_SOCK_STREAM
, ACE_NULL_SYNCH
>
33 Read_Handler () : chunks_in (0) {}
35 /// The Svc_Handler callbacks.
36 virtual int handle_input (ACE_HANDLE h
);
37 virtual int handle_close (ACE_HANDLE handle
,
38 ACE_Reactor_Mask close_mask
);
41 unsigned int chunks_in
;
44 #endif /* ACE_TESTS_REACTOR_FAIRNESS_TEST_H */