8 #include "ace/Asynch_IO.h"
10 class Receiver
: public ACE_Service_Handler
18 // The class will be created by ACE_Asynch_Acceptor when new
19 // connections arrive. This class will then receive data from
20 // the network connection and dump it to a file.
26 virtual void open (ACE_HANDLE handle
,
27 ACE_Message_Block
&message_block
);
28 // This is called after the new connection has been accepted.
31 // These methods are called by the framework
33 virtual void handle_read_stream (const ACE_Asynch_Read_Stream::Result
&result
);
34 // This is called when asynchronous read from the socket complete
37 ACE_Asynch_Read_Stream rs_
;
38 // rs (read stream): for reading from a socket
40 ACE_Message_Block mb_
;
41 // Message block to read from the stream.
44 // Handle for IO to remote peer
47 #endif /* _TEST_CANCEL_H */