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

ACE_POSIX_Asynch_Operation Class Reference

This class abstracts out the common things needed for implementing <Asynch_Operation> for POSIX platforms. Specific implementations such as <POSIX_AIOCB_Asynch_Operation> can derive from this class. More...

#include <POSIX_Asynch_IO.h>

Inheritance diagram for ACE_POSIX_Asynch_Operation:

Inheritance graph
[legend]
Collaboration diagram for ACE_POSIX_Asynch_Operation:

Collaboration graph
[legend]
List of all members.

Public Methods

int open (ACE_Handler &handler, ACE_HANDLE handle, const void *completion_key, ACE_Proactor *proactor=0)
int cancel (void)
 Check the documentation for <ACE_Asynch_Operation::cancel>. More...

ACE_Proactorproactor (void) const
 Return the underlying proactor. More...


Protected Methods

 ACE_POSIX_Asynch_Operation (void)
 No op contructor. More...

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


Protected Attributes

ACE_Proactorproactor_
 Proactor that this Asynch IO will be registered with. More...

ACE_Handlerhandler_
 Handler that will receive the callback. More...

ACE_HANDLE handle_
 I/O handle used for reading. More...


Detailed Description

This class abstracts out the common things needed for implementing <Asynch_Operation> for POSIX platforms. Specific implementations such as <POSIX_AIOCB_Asynch_Operation> can derive from this class.


Constructor & Destructor Documentation

ACE_POSIX_Asynch_Operation::ACE_POSIX_Asynch_Operation void    [protected]
 

No op contructor.

ACE_POSIX_Asynch_Operation::~ACE_POSIX_Asynch_Operation void    [protected, virtual]
 

Destructor.


Member Function Documentation

int ACE_POSIX_Asynch_Operation::cancel void   
 

Check the documentation for <ACE_Asynch_Operation::cancel>.

Reimplemented in ACE_POSIX_AIOCB_Asynch_Read_Stream, ACE_POSIX_AIOCB_Asynch_Write_Stream, ACE_POSIX_AIOCB_Asynch_Read_File, ACE_POSIX_AIOCB_Asynch_Write_File, ACE_POSIX_Asynch_Accept, ACE_POSIX_AIOCB_Asynch_Transmit_File, ACE_POSIX_AIOCB_Asynch_Read_Dgram, and ACE_POSIX_AIOCB_Asynch_Write_Dgram.

int ACE_POSIX_Asynch_Operation::open ACE_Handler   handler,
ACE_HANDLE    handle,
const void *    completion_key,
ACE_Proactor   proactor = 0
 

Initializes the factory with information which will be used with each asynchronous call. If (<handle> == ACE_INVALID_HANDLE), <ACE_Handler::handle> will be called on the <handler> to get the correct handle. No need for the Proactor since the sub classes will know the correct implementation Proactor class, since this Operation class itself was created by the correct implementation Proactor class.

Reimplemented in ACE_POSIX_AIOCB_Asynch_Read_Stream, ACE_POSIX_AIOCB_Asynch_Write_Stream, ACE_POSIX_AIOCB_Asynch_Read_File, ACE_POSIX_AIOCB_Asynch_Write_File, ACE_POSIX_Asynch_Accept, ACE_POSIX_AIOCB_Asynch_Transmit_File, ACE_POSIX_AIOCB_Asynch_Read_Dgram, and ACE_POSIX_AIOCB_Asynch_Write_Dgram.

ACE_Proactor * ACE_POSIX_Asynch_Operation::proactor void    const
 

Return the underlying proactor.

Reimplemented in ACE_POSIX_AIOCB_Asynch_Read_Stream, ACE_POSIX_AIOCB_Asynch_Write_Stream, ACE_POSIX_AIOCB_Asynch_Read_File, ACE_POSIX_AIOCB_Asynch_Write_File, ACE_POSIX_Asynch_Accept, ACE_POSIX_AIOCB_Asynch_Transmit_File, ACE_POSIX_AIOCB_Asynch_Read_Dgram, and ACE_POSIX_AIOCB_Asynch_Write_Dgram.


Member Data Documentation

ACE_HANDLE ACE_POSIX_Asynch_Operation::handle_ [protected]
 

I/O handle used for reading.

ACE_Handler* ACE_POSIX_Asynch_Operation::handler_ [protected]
 

Handler that will receive the callback.

ACE_Proactor* ACE_POSIX_Asynch_Operation::proactor_ [protected]
 

Proactor that this Asynch IO will be registered with.


The documentation for this class was generated from the following files:
Generated on Sun Feb 17 17:41:26 2002 for ACE by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001