Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_POSIX_Asynch_Write_Dgram_Result Class Reference

#include <POSIX_Asynch_IO.h>

Inheritance diagram for ACE_POSIX_Asynch_Write_Dgram_Result:

Inheritance graph
[legend]
Collaboration diagram for ACE_POSIX_Asynch_Write_Dgram_Result:

Collaboration graph
[legend]
List of all members.

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_Blockmessage_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_Blockmessage_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 & Destructor Documentation

ACE_POSIX_Asynch_Write_Dgram_Result::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
[protected]
 

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 }

ACE_POSIX_Asynch_Write_Dgram_Result::~ACE_POSIX_Asynch_Write_Dgram_Result void    [protected, virtual]
 

Destructor.

Definition at line 2489 of file POSIX_Asynch_IO.cpp.

02490 {
02491 }


Member Function Documentation

size_t ACE_POSIX_Asynch_Write_Dgram_Result::bytes_to_write void    const [virtual]
 

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 }

void ACE_POSIX_Asynch_Write_Dgram_Result::complete size_t    bytes_transferred,
int    success,
const void *    completion_key,
u_long    error
[protected, virtual]
 

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 }

int ACE_POSIX_Asynch_Write_Dgram_Result::flags void    const [virtual]
 

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 }

ACE_HANDLE ACE_POSIX_Asynch_Write_Dgram_Result::handle void    const [virtual]
 

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 }

ACE_Message_Block * ACE_POSIX_Asynch_Write_Dgram_Result::message_block void    const [virtual]
 

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 }


Friends And Related Function Documentation

friend class ACE_POSIX_Asynch_Write_Dgram [friend]
 

Factory classes will have special permissions.

Definition at line 1112 of file POSIX_Asynch_IO.h.

friend class ACE_POSIX_Proactor [friend]
 

Proactor class has special permission.

Definition at line 1115 of file POSIX_Asynch_IO.h.


Member Data Documentation

size_t ACE_POSIX_Asynch_Write_Dgram_Result::bytes_to_write_ [protected]
 

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.

int ACE_POSIX_Asynch_Write_Dgram_Result::flags_ [protected]
 

The flags using in the write.

Definition at line 1161 of file POSIX_Asynch_IO.h.

Referenced by flags.

ACE_HANDLE ACE_POSIX_Asynch_Write_Dgram_Result::handle_ [protected]
 

I/O handle used for writing.

Definition at line 1164 of file POSIX_Asynch_IO.h.

Referenced by handle.

ACE_Message_Block* ACE_POSIX_Asynch_Write_Dgram_Result::message_block_ [protected]
 

Message block used for the send.

Definition at line 1158 of file POSIX_Asynch_IO.h.

Referenced by message_block.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:53:38 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002