3 //=============================================================================
5 * @file MEM_Stream_Test.h
7 * This file has the class definitions needed for template generation in
10 * @author Steve Huston <shuston@riverace.com>
12 //=============================================================================
15 #ifndef ACE_TESTS_MEM_STREAM_TEST_H
16 #define ACE_TESTS_MEM_STREAM_TEST_H
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "ace/MEM_Stream.h"
23 #include "ace/Reactor.h"
24 #include "ace/Svc_Handler.h"
25 #include "ace/Synch_Traits.h"
27 #if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1)
32 * @brief Simple class for reading in the data and then sending it back
34 class Echo_Handler
: public ACE_Svc_Handler
<ACE_MEM_STREAM
, ACE_SYNCH
>
37 /// The Svc_Handler callbacks.
38 Echo_Handler (ACE_Thread_Manager
*thr_mgr
= 0);
39 virtual int open (void *);
40 static void reset_handler ();
41 virtual int handle_input (ACE_HANDLE h
);
42 virtual int handle_close (ACE_HANDLE handle
,
43 ACE_Reactor_Mask close_mask
);
47 ACE_TCHAR name_
[MAXPATHLEN
];
51 #endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS */
53 #endif /* ACE_TESTS_MEM_STREAM_TEST_H */