Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / tests / MEM_Stream_Test.h
blob990fdd4645e63ddc18d8e541ee98929543f110eb
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file MEM_Stream_Test.h
7 * This file has the class definitions needed for template generation in
8 * MEM_Stream_Test.cpp.
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)
19 # 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)
29 /**
30 * @class Echo_Handler
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>
36 public:
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);
44 virtual int svc ();
46 private:
47 ACE_TCHAR name_[MAXPATHLEN];
48 u_short connection_;
51 #endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS */
53 #endif /* ACE_TESTS_MEM_STREAM_TEST_H */