/* -*- C++ -*- */
// $Id: CommandModule.h 96098 2012-08-24 10:28:27Z johnnyw $

#ifndef COMMAND_MODULE_H
#define COMMAND_MODULE_H

#include "ace/Module.h"
#include "ace/SOCK_Stream.h"
#include "CommandTask.h"

// Listing 01 code/ch18
class CommandModule : public ACE_Module<ACE_MT_SYNCH, ACE_System_Time_Policy>
{
public:
  typedef ACE_Module<ACE_MT_SYNCH, ACE_System_Time_Policy> inherited;
  typedef ACE_Task<ACE_MT_SYNCH, ACE_System_Time_Policy> Task;

  CommandModule (const ACE_TCHAR *module_name,
                   CommandTask *writer,
                   CommandTask *reader,
                   ACE_SOCK_Stream *peer);

  ACE_SOCK_Stream &peer (void);
};
// Listing 01

#endif /* COMMAND_MODULE_H */
