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


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... | |
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 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 } |
|
|
Destructor.
Definition at line 1268 of file POSIX_Asynch_IO.cpp.
01269 {
01270 }
|
|
||||||||||||||||||||
|
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 }
|
|
|
Definition at line 1227 of file POSIX_Asynch_IO.cpp.
01228 {
01229 this->aio_fildes = handle;
01230 }
|
|
|
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 }
|
|
|
Factory classes will have special permissions.
Definition at line 768 of file POSIX_Asynch_IO.h. |
|
|
The Proactor constructs the Result class for faking results.
Definition at line 771 of file POSIX_Asynch_IO.h. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002