#include <Asynch_Connector.h>
Inheritance diagram for ACE_Asynch_Connector< HANDLER >:
Public Methods | |
ACE_Asynch_Connector (void) | |
A do nothing constructor. | |
virtual | ~ACE_Asynch_Connector (void) |
Virtual destruction. | |
virtual int | open (int pass_addresses=0, ACE_Proactor *proactor=0, int validate_new_connection=1) |
virtual int | connect (const ACE_INET_Addr &remote_sap, const ACE_INET_Addr &local_sap=ACE_INET_Addr((u_short) 0), int reuse_addr=1, const void *act=0) |
This initiates a new asynchronous connect. | |
virtual int | cancel (void) |
virtual int | validate_connection (const ACE_Asynch_Connect::Result &result, const ACE_INET_Addr &remote, const ACE_INET_Addr &local) |
virtual int | pass_addresses (void) const |
virtual void | pass_addresses (int new_value) |
virtual int | validate_new_connection (void) const |
virtual void | validate_new_connection (int new_value) |
Protected Methods | |
virtual void | handle_connect (const ACE_Asynch_Connect::Result &result) |
This is called when an outstanding accept completes. | |
void | parse_address (const ACE_Asynch_Connect::Result &result, ACE_INET_Addr &remote_address, ACE_INET_Addr &local_address) |
This parses the address from read buffer. | |
ACE_Asynch_Connect & | asynch_connect (void) |
Return the asynch Connect object. | |
virtual HANDLER * | make_handler (void) |
Private Attributes | |
ACE_Asynch_Connect | asynch_connect_ |
Asynch_Connect used to make life easier :-). | |
int | pass_addresses_ |
Flag that indicates if parsing of addresses is necessary. | |
int | validate_new_connection_ |
Flag that indicates if address validation is required. |
Unlike the ACE_Connector, however, this class is designed to be used asynchronously with the ACE Proactor framework.
|
A do nothing constructor.
|
|
Virtual destruction.
|
|
Return the asynch Connect object.
|
|
This cancels all pending accepts operations that were issued by the calling thread.
|
|
This initiates a new asynchronous connect.
|
|
This is called when an outstanding accept completes.
Reimplemented from ACE_Handler. |
|
This is the template method used to create new handler. Subclasses must overwrite this method if a new handler creation strategy is required. |
|
This opens asynch connector |
|
This parses the address from read buffer.
|
|
|
|
Set and get flag that indicates if parsing and passing of addresses to the service_handler is necessary. |
|
Template method to validate peer before service is opened. This method is called when the connection attempt completes, whether it succeeded or failed, if the validate_connection argument to
|
|
|
|
Set and get flag that indicates if address validation is required. |
|
Asynch_Connect used to make life easier :-).
|
|
Flag that indicates if parsing of addresses is necessary.
|
|
Flag that indicates if address validation is required.
|