#include <POSIX_Asynch_IO.h>
List of all members.
Public Member Functions |
| ACE_POSIX_Asynch_Connect (ACE_POSIX_Proactor *posix_proactor) |
| Constructor.
|
virtual | ~ACE_POSIX_Asynch_Connect (void) |
| Destructor.
|
int | open (const ACE_Handler::Proxy_Ptr &handler_proxy, ACE_HANDLE handle, const void *completion_key, ACE_Proactor *proactor=0) |
int | connect (ACE_HANDLE connect_handle, const ACE_Addr &remote_sap, const ACE_Addr &local_sap, int reuse_addr, const void *act, int priority, int signal_number=0) |
int | cancel (void) |
int | close (void) |
ACE_HANDLE | get_handle (void) const |
| virtual from ACE_Event_Handler
|
void | set_handle (ACE_HANDLE handle) |
| virtual from ACE_Event_Handler
|
int | handle_output (ACE_HANDLE handle) |
int | handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask) |
| virtual from ACE_Event_Handler
|
Private Types |
typedef ACE_Map_Manager
< ACE_HANDLE,
ACE_POSIX_Asynch_Connect_Result
*, ACE_SYNCH_NULL_MUTEX > | MAP_MANAGER |
Private Member Functions |
int | connect_i (ACE_POSIX_Asynch_Connect_Result *result, const ACE_Addr &remote_sap, const ACE_Addr &local_sap, int reuse_addr) |
int | post_result (ACE_POSIX_Asynch_Connect_Result *result, bool flg_post) |
int | cancel_uncompleted (bool flg_notify, ACE_Handle_Set &set) |
| Cancel uncompleted connect operations.
|
Private Attributes |
bool | flg_open_ |
MAP_MANAGER | result_map_ |
| Map of Result pointers that correspond to all the pending connects.
|
ACE_SYNCH_MUTEX | lock_ |
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
Cancel uncompleted connect operations.
- flg_notify Indicates whether or not we should send notification about canceled accepts. If this is false, don't send notifications about canceled connects. If true, notify user about canceled connects according POSIX standards we should receive notifications on canceled AIO requests.
Close performs cancellation of all pending requests.
This starts off an asynchronous connect.
- connect_handle will be used for the connect call. If ACE_INVALID_HANDLE is specified, a new handle will be created.
Implements ACE_Asynch_Connect_Impl.
Member Data Documentation
The lock to protect the result map which is shared. The queue is updated by main thread in the register function call and through the auxillary thread in the asynch pseudo task.
Map of Result pointers that correspond to all the pending connects.
The documentation for this class was generated from the following files: