Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / APG / Streams / CommandModule.cpp
blob77164f537af1f4ed77d34bedd9261471f7c837d5
1 #include "CommandModule.h"
3 // Listing 01 code/ch18
4 CommandModule::CommandModule (const ACE_TCHAR *module_name,
5 CommandTask *writer,
6 CommandTask *reader,
7 ACE_SOCK_Stream *peer)
8 : inherited(module_name, writer, reader, peer)
9 { }
10 // Listing 01
12 // Listing 02 code/ch18
13 ACE_SOCK_Stream &CommandModule::peer ()
15 ACE_SOCK_Stream *peer = (ACE_SOCK_Stream *)this->arg ();
16 return *peer;
18 // Listing 02