#include <POSIX_Asynch_IO.h>
Inheritance diagram for ACE_POSIX_Asynch_Write_Stream_Result:


Public Methods | |
| size_t | bytes_to_write (void) const |
| The number of bytes which were requested at the start of the asynchronous write. More... | |
| ACE_Message_Block & | message_block (void) const |
| Message block that contains the data to be written. More... | |
| ACE_HANDLE | handle (void) const |
| I/O handle used for writing. More... | |
Protected Methods | |
| ACE_POSIX_Asynch_Write_Stream_Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block &message_block, size_t bytes_to_write, const void *act, ACE_HANDLE event, int priority, int signal_number) | |
| Constructor is protected since creation is limited to ACE_Asynch_Write_Stream 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 write completes. More... | |
| virtual | ~ACE_POSIX_Asynch_Write_Stream_Result (void) |
| Destructor. More... | |
Protected Attributes | |
| ACE_Message_Block & | message_block_ |
| Message block that contains the data to be written. More... | |
Friends | |
| class | ACE_POSIX_Asynch_Write_Stream |
| Factory classes will have special privilages. More... | |
| class | ACE_POSIX_Proactor |
| The Proactor constructs the Result class for faking results. More... | |
This class has all the information necessary for the <handler> to uniquiely identify the completion of the asynchronous write.
Definition at line 309 of file POSIX_Asynch_IO.h.
|
||||||||||||||||||||||||||||||||||||
|
Constructor is protected since creation is limited to ACE_Asynch_Write_Stream factory.
Definition at line 353 of file POSIX_Asynch_IO.cpp.
00361 : ACE_Asynch_Result_Impl (), 00362 ACE_Asynch_Write_Stream_Result_Impl (), 00363 ACE_POSIX_Asynch_Result (handler, act, event, 0, 0, priority, signal_number), 00364 message_block_ (message_block) 00365 { 00366 this->aio_fildes = handle; 00367 this->aio_buf = message_block.rd_ptr (); 00368 this->aio_nbytes = bytes_to_write; 00369 ACE_UNUSED_ARG (event); 00370 } |
|
|
Destructor.
Definition at line 397 of file POSIX_Asynch_IO.cpp.
00398 {
00399 }
|
|
|
The number of bytes which were requested at the start of the asynchronous write.
Implements ACE_Asynch_Write_Stream_Result_Impl. Definition at line 335 of file POSIX_Asynch_IO.cpp.
00336 {
00337 return this->aio_nbytes;
00338 }
|
|
||||||||||||||||||||
|
|
I/O handle used for writing.
Implements ACE_Asynch_Write_Stream_Result_Impl. Definition at line 347 of file POSIX_Asynch_IO.cpp.
00348 {
00349 return this->aio_fildes;
00350 }
|
|
|
Message block that contains the data to be written.
Implements ACE_Asynch_Write_Stream_Result_Impl. Definition at line 341 of file POSIX_Asynch_IO.cpp. References message_block_.
00342 {
00343 return this->message_block_;
00344 }
|
|
|
Factory classes will have special privilages.
Definition at line 313 of file POSIX_Asynch_IO.h. |
|
|
The Proactor constructs the Result class for faking results.
Reimplemented in ACE_POSIX_Asynch_Write_File_Result. Definition at line 316 of file POSIX_Asynch_IO.h. |
|
|
Message block that contains the data to be written.
Definition at line 356 of file POSIX_Asynch_IO.h. Referenced by ACE_POSIX_Asynch_Write_File_Result::complete, complete, and message_block. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002