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
>
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
,
19 ACE_SOCK_Stream
*peer
);
21 ACE_SOCK_Stream
&peer ();
25 #endif /* COMMAND_MODULE_H */