#include <POSIX_Asynch_IO.h>
Inheritance diagram for ACE_POSIX_Asynch_Operation:
Public Methods | |
int | 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. More... | |
int | cancel (void) |
Check the documentation for <ACE_Asynch_Operation::cancel>. More... | |
ACE_Proactor * | proactor (void) const |
Return the underlying proactor. More... | |
ACE_POSIX_AIOCB_Proactor * | posix_proactor (void) const |
Return the underlying Proactor implementation. More... | |
Protected Methods | |
ACE_POSIX_Asynch_Operation (ACE_POSIX_AIOCB_Proactor *posix_aiocb_proactor) | |
Contructor. More... | |
virtual | ~ACE_POSIX_Asynch_Operation (void) |
Destructor. More... | |
virtual int | register_and_start_aio (ACE_POSIX_Asynch_Result *result, int op) |
This is the method which does the real work to start aio and should be used instead of shared_read/shared_write <op> means operation : 0 - read , 1 - write. More... | |
Protected Attributes | |
ACE_POSIX_AIOCB_Proactor * | posix_aiocb_proactor_ |
It is easy to get this specific implementation proactor here, since it is the one that creates the correct POSIX_Asynch_* objects. More... | |
ACE_Proactor * | proactor_ |
Proactor that this Asynch IO will be registered with. More... | |
ACE_Handler * | handler_ |
Handler that will receive the callback. More... | |
ACE_HANDLE | handle_ |
I/O handle used for reading. More... |
|
Contructor.
|
|
Destructor.
|
|
Check the documentation for <ACE_Asynch_Operation::cancel>.
Reimplemented from ACE_Asynch_Operation_Impl. Reimplemented in ACE_POSIX_Asynch_Read_Stream, ACE_POSIX_Asynch_Write_Stream, ACE_POSIX_Asynch_Read_File, ACE_POSIX_Asynch_Write_File, ACE_POSIX_Asynch_Accept, ACE_POSIX_Asynch_Connect, ACE_POSIX_Asynch_Transmit_File, ACE_POSIX_Asynch_Read_Dgram, and ACE_POSIX_Asynch_Write_Dgram. |
|
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 from ACE_Asynch_Operation_Impl. Reimplemented in ACE_POSIX_Asynch_Read_Stream, ACE_POSIX_Asynch_Write_Stream, ACE_POSIX_Asynch_Read_File, ACE_POSIX_Asynch_Write_File, ACE_POSIX_Asynch_Accept, ACE_POSIX_Asynch_Connect, ACE_POSIX_Asynch_Transmit_File, ACE_POSIX_Asynch_Read_Dgram, and ACE_POSIX_Asynch_Write_Dgram. |
|
Return the underlying Proactor implementation.
|
|
Return the underlying proactor.
Reimplemented from ACE_Asynch_Operation_Impl. Reimplemented in ACE_POSIX_Asynch_Read_Stream, ACE_POSIX_Asynch_Write_Stream, ACE_POSIX_Asynch_Read_File, ACE_POSIX_Asynch_Write_File, ACE_POSIX_Asynch_Accept, ACE_POSIX_Asynch_Connect, ACE_POSIX_Asynch_Transmit_File, ACE_POSIX_Asynch_Read_Dgram, and ACE_POSIX_Asynch_Write_Dgram. |
|
This is the method which does the real work to start aio and should be used instead of shared_read/shared_write <op> means operation : 0 - read , 1 - write.
|
|
I/O handle used for reading.
|
|
Handler that will receive the callback.
|
|
It is easy to get this specific implementation proactor here, since it is the one that creates the correct POSIX_Asynch_* objects. We can use this to get to the implementation proactor directly. |
|
Proactor that this Asynch IO will be registered with.
|