#include <Asynch_IO.h>
Inheritance diagram for ACE_Asynch_Operation


Public Methods | |
| int | open (ACE_Handler &handler, ACE_HANDLE handle, const void *completion_key, ACE_Proactor *proactor) |
| int | cancel (void) |
| ACE_Proactor* | proactor (void) const |
| Return the underlying proactor. | |
| virtual | ~ACE_Asynch_Operation (void) |
| Destructor. | |
Protected Methods | |
| ACE_Asynch_Operation (void) | |
| Constructor. | |
| ACE_Asynch_Operation_Impl* | implementation (void) const |
| Return the underlying implementation class. | |
| void | implementation (ACE_Asynch_Operation_Impl *implementation) |
| Set the implementation class. | |
| ACE_Proactor* | get_proactor (ACE_Proactor *user_proactor, ACE_Handler &handler) const |
| Get a proactor for/from the user. | |
Protected Attributes | |
| ACE_Asynch_Operation_Impl* | implementation_ |
| Implementation class. | |
There are some attributes and functionality which is common to all asychronous operations. The delegation classes of this class will factor out this code.
|
|
Destructor.
|
|
|
Constructor.
|
|
|
(Attempts to) cancel the asynchronous operation pending against the <handle> registered with this Operation. All completion notifications for the I/O operations will occur normally. = Return Values: -1 : Operation failed. (can get only in POSIX). 0 : All the operations were cancelled. 1 : All the operations were already finished in this handle. Unable to cancel them. 2 : Atleast one of the requested operations cannot be cancelled. There is slight difference in the semantics between NT and POSIX platforms which is given below. = Win32 : cancels all pending accepts operations that were issued by the calling thread. The function does not cancel asynchronous operations issued by other threads. All I/O operations that are canceled will complete with the error ERROR_OPERATION_ABORTED. = POSIX: Attempts to cancel one or more asynchronous I/O requests currently outstanding against the <handle> registered in this operation. For requested operations that are successfully canceled, the associated error status is set to ECANCELED. |
|
|
Get a proactor for/from the user.
|
|
|
Set the implementation class.
|
|
|
Return the underlying implementation class.
Reimplemented in ACE_Asynch_Read_Stream, ACE_Asynch_Write_Stream, ACE_Asynch_Read_File, ACE_Asynch_Write_File, ACE_Asynch_Accept, ACE_Asynch_Transmit_File, ACE_Asynch_Read_Dgram, and ACE_Asynch_Write_Dgram. |
|
|
Initializes the factory with information which will be used with each asynchronous call. If (<handle> == ACE_INVALID_HANDLE), will be called on the <handler> to get the correct handle. Reimplemented in ACE_Asynch_Read_Stream, ACE_Asynch_Write_Stream, ACE_Asynch_Read_File, ACE_Asynch_Write_File, ACE_Asynch_Accept, ACE_Asynch_Transmit_File, ACE_Asynch_Read_Dgram, and ACE_Asynch_Write_Dgram. |
|
|
Return the underlying proactor.
|
|
|
Implementation class.
Reimplemented in ACE_Asynch_Read_Stream, ACE_Asynch_Write_Stream, ACE_Asynch_Read_File, ACE_Asynch_Write_File, ACE_Asynch_Accept, ACE_Asynch_Transmit_File, ACE_Asynch_Read_Dgram, and ACE_Asynch_Write_Dgram. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000