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

ACE_Asynch_Accept::Result Class Reference

This is that class which will be passed back to the <handler> when the asynchronous accept completes. More...

#include <Asynch_IO.h>

Inheritance diagram for ACE_Asynch_Accept::Result:

Inheritance graph
[legend]
Collaboration diagram for ACE_Asynch_Accept::Result:

Collaboration graph
[legend]
List of all members.

Public Methods

size_t bytes_to_read (void) const
 The number of bytes which were requested at the start of the asynchronous accept. More...

ACE_Message_Blockmessage_block (void) const
 Message block which contains the read data. More...

ACE_HANDLE listen_handle (void) const
 I/O handle used for accepting new connections. More...

ACE_HANDLE accept_handle (void) const
 I/O handle for the new connection. More...

ACE_Asynch_Accept_Result_Implimplementation (void) const
 Get the implementation. More...


Protected Methods

 Result (ACE_Asynch_Accept_Result_Impl *implementation)
 Contructor. Implementation will not be deleted. More...

virtual ~Result (void)
 Destructor. More...


Protected Attributes

ACE_Asynch_Accept_Result_Implimplementation_
 Impelmentation class. More...


Friends

class ACE_POSIX_Asynch_Accept_Result
 The concrete implementation result classes only construct this class. More...

class ACE_WIN32_Asynch_Accept_Result

Detailed Description

This is that class which will be passed back to the <handler> when the asynchronous accept completes.

This class has all the information necessary for the <handler> to uniquiely identify the completion of the asynchronous accept.

Definition at line 847 of file Asynch_IO.h.


Constructor & Destructor Documentation

ACE_Asynch_Accept::Result::Result ACE_Asynch_Accept_Result_Impl   implementation [protected]
 

Contructor. Implementation will not be deleted.

Definition at line 719 of file Asynch_IO.cpp.

References ACE_Asynch_Accept::implementation, and ACE_Asynch_Accept::implementation_.

00720   : ACE_Asynch_Result (implementation),
00721     implementation_ (implementation)
00722 {
00723 }

ACE_Asynch_Accept::Result::~Result void    [protected, virtual]
 

Destructor.

Definition at line 725 of file Asynch_IO.cpp.

00726 {
00727   // Proactor will delete the implementation when the <complete> call
00728   // completes.
00729 }


Member Function Documentation

ACE_HANDLE ACE_Asynch_Accept::Result::accept_handle void    const
 

I/O handle for the new connection.

Definition at line 714 of file Asynch_IO.cpp.

References ACE_Asynch_Accept_Result_Impl::accept_handle, and implementation.

Referenced by ACE_Asynch_Acceptor::handle_accept, and ACE_Asynch_Acceptor::parse_address.

00715 {
00716   return this->implementation ()->accept_handle ();
00717 }

size_t ACE_Asynch_Accept::Result::bytes_to_read void    const
 

The number of bytes which were requested at the start of the asynchronous accept.

Definition at line 696 of file Asynch_IO.cpp.

References ACE_Asynch_Accept_Result_Impl::bytes_to_read, and implementation.

00697 {
00698   return this->implementation ()->bytes_to_read ();
00699 }

ACE_Asynch_Accept_Result_Impl * ACE_Asynch_Accept::Result::implementation void    const
 

Get the implementation.

Reimplemented from ACE_Asynch_Result.

Definition at line 732 of file Asynch_IO.cpp.

References implementation_.

Referenced by accept_handle, bytes_to_read, listen_handle, and message_block.

00733 {
00734   return this->implementation_;
00735 }

ACE_HANDLE ACE_Asynch_Accept::Result::listen_handle void    const
 

I/O handle used for accepting new connections.

Definition at line 708 of file Asynch_IO.cpp.

References implementation, and ACE_Asynch_Accept_Result_Impl::listen_handle.

00709 {
00710   return this->implementation ()->listen_handle ();
00711 }

ACE_Message_Block & ACE_Asynch_Accept::Result::message_block void    const
 

Message block which contains the read data.

Definition at line 702 of file Asynch_IO.cpp.

References implementation, and ACE_Asynch_Accept_Result_Impl::message_block.

Referenced by ACE_Asynch_Acceptor::handle_accept, and ACE_Asynch_Acceptor::parse_address.

00703 {
00704   return this->implementation ()->message_block ();
00705 }


Friends And Related Function Documentation

friend class ACE_POSIX_Asynch_Accept_Result [friend]
 

The concrete implementation result classes only construct this class.

Definition at line 852 of file Asynch_IO.h.

friend class ACE_WIN32_Asynch_Accept_Result [friend]
 

Definition at line 853 of file Asynch_IO.h.


Member Data Documentation

ACE_Asynch_Accept_Result_Impl* ACE_Asynch_Accept::Result::implementation_ [protected]
 

Impelmentation class.

Reimplemented from ACE_Asynch_Result.

Definition at line 880 of file Asynch_IO.h.

Referenced by implementation.


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