#include <WIN32_Asynch_IO.h>
Inheritance diagram for ACE_WIN32_Asynch_Result:
Public Member Functions | |
size_t | bytes_transferred (void) const |
Number of bytes transferred by the operation. | |
const void * | act (void) const |
ACT associated with the operation. | |
int | success (void) const |
Did the operation succeed? | |
const void * | completion_key (void) const |
u_long | error (void) const |
Error value if the operation fail. | |
ACE_HANDLE | event (void) const |
Event associated with the OVERLAPPED structure. | |
u_long | offset (void) const |
This really make sense only when doing file I/O. | |
u_long | offset_high (void) const |
Offset_high associated with the OVERLAPPED structure. | |
int | priority (void) const |
int | signal_number (void) const |
Returns 0. | |
int | post_completion (ACE_Proactor_Impl *proactor) |
Post to the Proactor's completion port. | |
virtual | ~ACE_WIN32_Asynch_Result (void) |
Destructor. | |
void | set_error (u_long errcode) |
Simulate error value to use in the post_completion (). | |
void | set_bytes_transferred (size_t nbytes) |
Simulate value to use in the post_completion (). | |
Protected Member Functions | |
ACE_WIN32_Asynch_Result (const ACE_Handler::Proxy_Ptr &handler_proxy, const void *act, ACE_HANDLE event, u_long offset, u_long offset_high, int priority, int signal_number=0) | |
Constructor. | |
Protected Attributes | |
ACE_Handler::Proxy_Ptr | handler_proxy_ |
Proxy for the ACE_Handler that will be called back. | |
const void * | act_ |
ACT for this operation. | |
size_t | bytes_transferred_ |
Bytes transferred by this operation. | |
int | success_ |
Success indicator. | |
const void * | completion_key_ |
ACT associated with handle. | |
u_long | error_ |
Error if operation failed. | |
Friends | |
class | ACE_WIN32_Asynch_Accept |
Factory class has special permissions. | |
class | ACE_WIN32_Proactor |
Proactor class has special permission. |
An abstract base class from which you can obtain some basic information like the number of bytes transferred, the ACT associated with the asynchronous operation, indication of success or failure, etc. Subclasses may want to store more information that is particular to the asynchronous operation it represents.
Definition at line 62 of file WIN32_Asynch_IO.h.
|
Destructor.
Definition at line 109 of file WIN32_Asynch_IO.cpp.
00110 { 00111 } |
|
Constructor.
Definition at line 114 of file WIN32_Asynch_IO.cpp. References ACE_Handler::Proxy_Ptr.
00121 : ACE_Asynch_Result_Impl (), 00122 OVERLAPPED (), 00123 handler_proxy_ (handler_proxy), 00124 act_ (act), 00125 bytes_transferred_ (0), 00126 success_ (0), 00127 completion_key_ (0), 00128 error_ (0) 00129 { 00130 // Set the ACE_OVERLAPPED structure 00131 this->Internal = 0; 00132 this->InternalHigh = 0; 00133 this->Offset = offset; 00134 this->OffsetHigh = offset_high; 00135 this->hEvent = event; 00136 00137 ACE_UNUSED_ARG (priority); 00138 ACE_UNUSED_ARG (signal_number); 00139 } |
|
ACT associated with the operation.
Implements ACE_Asynch_Result_Impl. Reimplemented in ACE_WIN32_Asynch_Read_Stream_Result, ACE_WIN32_Asynch_Write_Stream_Result, ACE_WIN32_Asynch_Read_File_Result, ACE_WIN32_Asynch_Write_File_Result, ACE_WIN32_Asynch_Accept_Result, ACE_WIN32_Asynch_Connect_Result, ACE_WIN32_Asynch_Transmit_File_Result, ACE_WIN32_Asynch_Read_Dgram_Result, and ACE_WIN32_Asynch_Write_Dgram_Result. Definition at line 29 of file WIN32_Asynch_IO.cpp. Referenced by ACE_WIN32_Asynch_Write_Dgram_Result::act(), ACE_WIN32_Asynch_Read_Dgram_Result::act(), ACE_WIN32_Asynch_Transmit_File_Result::act(), ACE_WIN32_Asynch_Connect_Result::act(), ACE_WIN32_Asynch_Accept_Result::act(), ACE_WIN32_Asynch_Write_File_Result::act(), ACE_WIN32_Asynch_Read_File_Result::act(), ACE_WIN32_Asynch_Write_Stream_Result::act(), and ACE_WIN32_Asynch_Read_Stream_Result::act().
00030 { 00031 return this->act_; 00032 } |
|
|
|
|
Event associated with the OVERLAPPED structure.
Implements ACE_Asynch_Result_Impl. Reimplemented in ACE_WIN32_Asynch_Read_Stream_Result, ACE_WIN32_Asynch_Write_Stream_Result, ACE_WIN32_Asynch_Read_File_Result, ACE_WIN32_Asynch_Write_File_Result, ACE_WIN32_Asynch_Accept_Result, ACE_WIN32_Asynch_Connect_Result, ACE_WIN32_Asynch_Transmit_File_Result, ACE_WIN32_Asynch_Read_Dgram_Result, and ACE_WIN32_Asynch_Write_Dgram_Result. Definition at line 53 of file WIN32_Asynch_IO.cpp. Referenced by ACE_WIN32_Asynch_Write_Dgram_Result::event(), ACE_WIN32_Asynch_Read_Dgram_Result::event(), ACE_WIN32_Asynch_Transmit_File_Result::event(), ACE_WIN32_Asynch_Connect_Result::event(), ACE_WIN32_Asynch_Accept_Result::event(), ACE_WIN32_Asynch_Write_File_Result::event(), ACE_WIN32_Asynch_Read_File_Result::event(), ACE_WIN32_Asynch_Write_Stream_Result::event(), and ACE_WIN32_Asynch_Read_Stream_Result::event().
00054 {
00055 return this->hEvent;
00056 }
|
|
This really make sense only when doing file I/O.
Implements ACE_Asynch_Result_Impl. Reimplemented in ACE_WIN32_Asynch_Read_Stream_Result, ACE_WIN32_Asynch_Write_Stream_Result, ACE_WIN32_Asynch_Read_File_Result, ACE_WIN32_Asynch_Write_File_Result, ACE_WIN32_Asynch_Accept_Result, ACE_WIN32_Asynch_Connect_Result, ACE_WIN32_Asynch_Transmit_File_Result, ACE_WIN32_Asynch_Read_Dgram_Result, and ACE_WIN32_Asynch_Write_Dgram_Result. Definition at line 59 of file WIN32_Asynch_IO.cpp. Referenced by ACE_WIN32_Asynch_Write_Dgram_Result::offset(), ACE_WIN32_Asynch_Read_Dgram_Result::offset(), ACE_WIN32_Asynch_Transmit_File_Result::offset(), ACE_WIN32_Asynch_Connect_Result::offset(), ACE_WIN32_Asynch_Accept_Result::offset(), ACE_WIN32_Asynch_Write_File_Result::offset(), ACE_WIN32_Asynch_Read_File_Result::offset(), ACE_WIN32_Asynch_Write_Stream_Result::offset(), and ACE_WIN32_Asynch_Read_Stream_Result::offset().
00060 {
00061 return this->Offset;
00062 }
|
|
|
|
|
Simulate value to use in the post_completion ().
Definition at line 98 of file WIN32_Asynch_IO.cpp. Referenced by ACE_WIN32_Asynch_Connect::cancel_uncompleted(), ACE_WIN32_Asynch_Connect::connect_i(), ACE_WIN32_Asynch_Connect::handle_close(), and ACE_WIN32_Asynch_Connect::handle_output().
00099 { 00100 this->bytes_transferred_ = nbytes; 00101 } |
|
Simulate error value to use in the post_completion ().
Definition at line 104 of file WIN32_Asynch_IO.cpp. Referenced by ACE_WIN32_Asynch_Connect::cancel_uncompleted(), ACE_WIN32_Asynch_Connect::connect(), ACE_WIN32_Asynch_Connect::connect_i(), ACE_WIN32_Asynch_Connect::handle_close(), ACE_WIN32_Asynch_Connect::handle_output(), ACE_WIN32_Asynch_Read_File::readv(), ACE_WIN32_Asynch_Read_Stream::readv(), ACE_WIN32_Asynch_Read_Stream::shared_read(), ACE_WIN32_Asynch_Write_Stream::shared_write(), and ACE_WIN32_Asynch_Write_File::writev().
00105 { 00106 this->error_ = errcode; 00107 } |
|
|
|
Factory class has special permissions.
Reimplemented in ACE_WIN32_Asynch_Accept_Result. Definition at line 66 of file WIN32_Asynch_IO.h. |
|
Proactor class has special permission.
Reimplemented in ACE_WIN32_Asynch_Read_Stream_Result, ACE_WIN32_Asynch_Write_Stream_Result, ACE_WIN32_Asynch_Read_File_Result, ACE_WIN32_Asynch_Write_File_Result, ACE_WIN32_Asynch_Accept_Result, ACE_WIN32_Asynch_Connect_Result, ACE_WIN32_Asynch_Transmit_File_Result, ACE_WIN32_Asynch_Read_Dgram_Result, ACE_WIN32_Asynch_Write_Dgram_Result, and ACE_WIN32_Asynch_Timer. Definition at line 69 of file WIN32_Asynch_IO.h. |
|
ACT for this operation.
Definition at line 133 of file WIN32_Asynch_IO.h. |
|
Bytes transferred by this operation.
Definition at line 136 of file WIN32_Asynch_IO.h. |
|
ACT associated with handle.
Definition at line 142 of file WIN32_Asynch_IO.h. |
|
Error if operation failed.
Definition at line 145 of file WIN32_Asynch_IO.h. |
|
Proxy for the ACE_Handler that will be called back.
Definition at line 130 of file WIN32_Asynch_IO.h. |
|
Success indicator.
Definition at line 139 of file WIN32_Asynch_IO.h. |