Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / APG / Streams / CommandModule.h
blob217599791d2e1ee97a4ad3ecbe124bae9790798b
1 /* -*- C++ -*- */
2 #ifndef COMMAND_MODULE_H
3 #define COMMAND_MODULE_H
5 #include "ace/Module.h"
6 #include "ace/SOCK_Stream.h"
7 #include "CommandTask.h"
9 // Listing 01 code/ch18
10 class CommandModule : public ACE_Module<ACE_MT_SYNCH, ACE_System_Time_Policy>
12 public:
13 typedef ACE_Module<ACE_MT_SYNCH, ACE_System_Time_Policy> inherited;
14 typedef ACE_Task<ACE_MT_SYNCH, ACE_System_Time_Policy> Task;
16 CommandModule (const ACE_TCHAR *module_name,
17 CommandTask *writer,
18 CommandTask *reader,
19 ACE_SOCK_Stream *peer);
21 ACE_SOCK_Stream &peer ();
23 // Listing 01
25 #endif /* COMMAND_MODULE_H */