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

ACE_POSIX_Asynch_Connect_Result Class Reference

This is that class which will be passed back to the completion handler when the asynchronous connect completes. More...

#include <POSIX_Asynch_IO.h>

Inheritance diagram for ACE_POSIX_Asynch_Connect_Result:

Inheritance graph
[legend]
Collaboration diagram for ACE_POSIX_Asynch_Connect_Result:

Collaboration graph
[legend]
List of all members.

Public Methods

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


Protected Methods

 ACE_POSIX_Asynch_Connect_Result (ACE_Handler &handler, ACE_HANDLE connect_handle, const void *act, ACE_HANDLE event, int priority, int signal_number)
 Constructor is protected since creation is limited to ACE_Asynch_Connect 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 accept completes. More...

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

void connect_handle (ACE_HANDLE handle)

Friends

class ACE_POSIX_Asynch_Connect
 Factory classes will have special permissions. More...

class ACE_POSIX_Proactor
 The Proactor constructs the Result class for faking results. More...


Detailed Description

This is that class which will be passed back to the completion handler when the asynchronous connect completes.

This class has all the information necessary for a completion handler to uniquely identify the completion of the asynchronous connect.

Definition at line 764 of file POSIX_Asynch_IO.h.


Constructor & Destructor Documentation

ACE_POSIX_Asynch_Connect_Result::ACE_POSIX_Asynch_Connect_Result ACE_Handler   handler,
ACE_HANDLE    connect_handle,
const void *    act,
ACE_HANDLE    event,
int    priority,
int    signal_number
[protected]
 

Constructor is protected since creation is limited to ACE_Asynch_Connect factory.

Definition at line 1234 of file POSIX_Asynch_IO.cpp.

01241   : ACE_Asynch_Result_Impl (),
01242     ACE_Asynch_Connect_Result_Impl (),
01243     ACE_POSIX_Asynch_Result (handler, act, event, 0, 0, priority, signal_number)
01244 {
01245   this->aio_fildes = connect_handle;
01246   this->aio_nbytes = 0;
01247 }

ACE_POSIX_Asynch_Connect_Result::~ACE_POSIX_Asynch_Connect_Result void    [protected, virtual]
 

Destructor.

Definition at line 1268 of file POSIX_Asynch_IO.cpp.

01269 {
01270 }


Member Function Documentation

void ACE_POSIX_Asynch_Connect_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 accept completes.

Implements ACE_Asynch_Result_Impl.

Definition at line 1250 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_connect, ACE_POSIX_Asynch_Result::handler_, ACE_POSIX_Asynch_Result::success, and ACE_POSIX_Asynch_Result::success_.

01254 {
01255   // Copy the data.
01256   this->bytes_transferred_ = bytes_transferred;
01257   this->success_ = success;
01258   this->completion_key_ = completion_key;
01259   this->error_ = error;
01260 
01261   // Create the interface result class.
01262   ACE_Asynch_Connect::Result result (this);
01263 
01264   // Call the application handler.
01265   this->handler_.handle_connect (result);
01266 }

void ACE_POSIX_Asynch_Connect_Result::connect_handle ACE_HANDLE    handle [protected]
 

Definition at line 1227 of file POSIX_Asynch_IO.cpp.

01228 {
01229   this->aio_fildes = handle;
01230 }

ACE_HANDLE ACE_POSIX_Asynch_Connect_Result::connect_handle void    const [virtual]
 

I/O handle for the connection.

Implements ACE_Asynch_Connect_Result_Impl.

Definition at line 1222 of file POSIX_Asynch_IO.cpp.

Referenced by ACE_POSIX_Asynch_Connect::connect, ACE_POSIX_Asynch_Connect::connect_i, and ACE_POSIX_Asynch_Connect::post_result.

01223 {
01224   return this->aio_fildes;
01225 }


Friends And Related Function Documentation

friend class ACE_POSIX_Asynch_Connect [friend]
 

Factory classes will have special permissions.

Definition at line 768 of file POSIX_Asynch_IO.h.

friend class ACE_POSIX_Proactor [friend]
 

The Proactor constructs the Result class for faking results.

Definition at line 771 of file POSIX_Asynch_IO.h.


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