Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_POSIX_Asynch_Read_File_Result Class Reference

This class provides concrete implementation for <ACE_Asynch_Read_File::Result> class for POSIX platforms. More...

#include <POSIX_Asynch_IO.h>

Inheritance diagram for ACE_POSIX_Asynch_Read_File_Result:

Inheritance graph
[legend]
Collaboration diagram for ACE_POSIX_Asynch_Read_File_Result:

Collaboration graph
[legend]
List of all members.

Protected Methods

 ACE_POSIX_Asynch_Read_File_Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block &message_block, size_t bytes_to_read, const void *act, u_long offset, u_long offset_high, ACE_HANDLE event, int priority, int signal_number)
 Constructor is protected since creation is limited to ACE_Asynch_Read_File factory. More...

virtual void complete (size_t bytes_transferred, int success, const void *completion_key, u_long error)
 ACE_Proactor will call this method when the read completes. More...

virtual ~ACE_POSIX_Asynch_Read_File_Result (void)
 Destructor. More...


Friends

class ACE_POSIX_Asynch_Read_File
 Factory classes will have special permissions. More...

class ACE_POSIX_Proactor
 The Proactor constructs the Result class for faking results. More...


Detailed Description

This class provides concrete implementation for <ACE_Asynch_Read_File::Result> class for POSIX platforms.

Definition at line 393 of file POSIX_Asynch_IO.h.


Constructor & Destructor Documentation

ACE_POSIX_Asynch_Read_File_Result::ACE_POSIX_Asynch_Read_File_Result ACE_Handler   handler,
ACE_HANDLE    handle,
ACE_Message_Block   message_block,
size_t    bytes_to_read,
const void *    act,
u_long    offset,
u_long    offset_high,
ACE_HANDLE    event,
int    priority,
int    signal_number
[protected]
 

Constructor is protected since creation is limited to ACE_Asynch_Read_File factory.

Definition at line 455 of file POSIX_Asynch_IO.cpp.

00465   : ACE_Asynch_Result_Impl (),
00466     ACE_Asynch_Read_Stream_Result_Impl (),
00467     ACE_Asynch_Read_File_Result_Impl (),
00468     ACE_POSIX_Asynch_Read_Stream_Result (handler,
00469                                          handle,
00470                                          message_block,
00471                                          bytes_to_read,
00472                                          act,
00473                                          event,
00474                                          priority,
00475                                          signal_number)
00476 {
00477   this->aio_offset = offset;
00478   //
00479   // @@ Use aiocb64??
00480   //
00481   ACE_UNUSED_ARG (offset_high);
00482 }

ACE_POSIX_Asynch_Read_File_Result::~ACE_POSIX_Asynch_Read_File_Result void    [protected, virtual]
 

Destructor.

Definition at line 509 of file POSIX_Asynch_IO.cpp.

00510 {
00511 }


Member Function Documentation

void ACE_POSIX_Asynch_Read_File_Result::complete size_t    bytes_transferred,
int    success,
const void *    completion_key,
u_long    error
[protected, virtual]
 

ACE_Proactor will call this method when the read completes.

Reimplemented from ACE_POSIX_Asynch_Read_Stream_Result.

Definition at line 485 of file POSIX_Asynch_IO.cpp.

References ACE_POSIX_Asynch_Result::bytes_transferred, ACE_POSIX_Asynch_Result::bytes_transferred_, ACE_POSIX_Asynch_Result::completion_key, ACE_POSIX_Asynch_Result::completion_key_, ACE_POSIX_Asynch_Result::error, ACE_POSIX_Asynch_Result::error_, ACE_Handler::handle_read_file, ACE_POSIX_Asynch_Result::handler_, ACE_POSIX_Asynch_Read_Stream_Result::message_block_, ACE_POSIX_Asynch_Result::success, ACE_POSIX_Asynch_Result::success_, and ACE_Message_Block::wr_ptr.

00489 {
00490   // Copy all the data.
00491   this->bytes_transferred_ = bytes_transferred;
00492   this->success_ = success;
00493   this->completion_key_ = completion_key;
00494   this->error_ = error;
00495 
00496   // <errno> is available in the aiocb.
00497   ACE_UNUSED_ARG (error);
00498 
00499   // Appropriately move the pointers in the message block.
00500   this->message_block_.wr_ptr (bytes_transferred);
00501 
00502   // Create the interface result class.
00503   ACE_Asynch_Read_File::Result result (this);
00504 
00505   // Call the application handler.
00506   this->handler_.handle_read_file (result);
00507 }


Friends And Related Function Documentation

friend class ACE_POSIX_Asynch_Read_File [friend]
 

Factory classes will have special permissions.

Definition at line 397 of file POSIX_Asynch_IO.h.

friend class ACE_POSIX_Proactor [friend]
 

The Proactor constructs the Result class for faking results.

Reimplemented from ACE_POSIX_Asynch_Read_Stream_Result.

Definition at line 400 of file POSIX_Asynch_IO.h.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:52:56 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002