#include <POSIX_Asynch_IO.h>
Inheritance diagram for ACE_POSIX_Asynch_Write_Dgram_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 which contains the sent data. More... | |
| int | flags (void) const |
| The flags using in the write. More... | |
| ACE_HANDLE | handle (void) const |
| I/O handle used for writing. More... | |
Protected Methods | |
| ACE_POSIX_Asynch_Write_Dgram_Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block *message_block, size_t bytes_to_write, int flags, 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_Dgram_Result (void) |
| Destructor. More... | |
Protected Attributes | |
| size_t | bytes_to_write_ |
| The number of bytes which were requested at the start of the asynchronous write. More... | |
| ACE_Message_Block * | message_block_ |
| Message block used for the send. More... | |
| int | flags_ |
| The flags using in the write. More... | |
| ACE_HANDLE | handle_ |
| I/O handle used for writing. More... | |
Friends | |
| class | ACE_POSIX_Asynch_Write_Dgram |
| Factory classes will have special permissions. More... | |
| class | ACE_POSIX_Proactor |
| Proactor class has special permission. More... | |
|
||||||||||||||||||||||||||||||||||||||||
|
Constructor is protected since creation is limited to ACE_Asynch_Write_Stream factory.
Definition at line 2441 of file POSIX_Asynch_IO.cpp.
02451 : ACE_Asynch_Result_Impl (), 02452 ACE_Asynch_Write_Dgram_Result_Impl(), 02453 ACE_POSIX_Asynch_Result (handler, act, event, 0, 0, priority, signal_number), 02454 bytes_to_write_ (bytes_to_write), 02455 message_block_ (message_block), 02456 flags_ (flags), 02457 handle_ (handle) 02458 02459 { 02460 this->aio_fildes = handle; 02461 this->aio_nbytes = bytes_to_write; 02462 } |
|
|
Destructor.
Definition at line 2489 of file POSIX_Asynch_IO.cpp.
02490 {
02491 }
|
|
|
The number of bytes which were requested at the start of the asynchronous write.
Implements ACE_Asynch_Write_Dgram_Result_Impl. Definition at line 2416 of file POSIX_Asynch_IO.cpp. References bytes_to_write_.
02417 {
02418 return this->bytes_to_write_;
02419 }
|
|
||||||||||||||||||||
|
ACE_Proactor will call this method when the write completes.
Implements ACE_Asynch_Result_Impl. Definition at line 2465 of file POSIX_Asynch_IO.cpp. References ACE_POSIX_Asynch_Result::bytes_transferred, ACE_POSIX_Asynch_Result::bytes_transferred_, ACE_POSIX_Asynch_Result::completion_key, ACE_POSIX_Asynch_Result::completion_key_, ACE_POSIX_Asynch_Result::error, ACE_POSIX_Asynch_Result::error_, ACE_Handler::handle_write_dgram, ACE_POSIX_Asynch_Result::handler_, ACE_POSIX_Asynch_Result::success, and ACE_POSIX_Asynch_Result::success_.
02469 {
02470 // Copy the data which was returned by GetQueuedCompletionStatus
02471 this->bytes_transferred_ = bytes_transferred;
02472 this->success_ = success;
02473 this->completion_key_ = completion_key;
02474 this->error_ = error;
02475
02476 // <errno> is available in the aiocb.
02477 ACE_UNUSED_ARG (error);
02478
02479 // Appropriately move the pointers in the message block.
02480 //this->message_block_.wr_ptr (bytes_transferred);
02481
02482 // Create the interface result class.
02483 ACE_Asynch_Write_Dgram::Result result (this);
02484
02485 // Call the application handler.
02486 this->handler_.handle_write_dgram (result);
02487 }
|
|
|
The flags using in the write.
Implements ACE_Asynch_Write_Dgram_Result_Impl. Definition at line 2422 of file POSIX_Asynch_IO.cpp. References flags_.
02423 {
02424 return this->flags_;
02425 }
|
|
|
I/O handle used for writing.
Implements ACE_Asynch_Write_Dgram_Result_Impl. Definition at line 2428 of file POSIX_Asynch_IO.cpp. References handle_.
02429 {
02430 return this->handle_;
02431 }
|
|
|
Message block which contains the sent data.
Implements ACE_Asynch_Write_Dgram_Result_Impl. Definition at line 2435 of file POSIX_Asynch_IO.cpp. References message_block_.
02436 {
02437 return this->message_block_;
02438 }
|
|
|
Factory classes will have special permissions.
Definition at line 1112 of file POSIX_Asynch_IO.h. |
|
|
Proactor class has special permission.
Definition at line 1115 of file POSIX_Asynch_IO.h. |
|
|
The number of bytes which were requested at the start of the asynchronous write.
Definition at line 1155 of file POSIX_Asynch_IO.h. Referenced by bytes_to_write. |
|
|
The flags using in the write.
Definition at line 1161 of file POSIX_Asynch_IO.h. Referenced by flags. |
|
|
I/O handle used for writing.
Definition at line 1164 of file POSIX_Asynch_IO.h. Referenced by handle. |
|
|
Message block used for the send.
Definition at line 1158 of file POSIX_Asynch_IO.h. Referenced by message_block. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002