ACE_NonBlocking_Connect_Handler< SVC_HANDLER > Class Template ReferencePerforms non-blocking connects on behalf of the Connector. More...
Inheritance diagram for ACE_NonBlocking_Connect_Handler< SVC_HANDLER >:
![]()
Collaboration diagram for ACE_NonBlocking_Connect_Handler< SVC_HANDLER >:
![]()
Detailed Descriptiontemplate<class SVC_HANDLER>
Performs non-blocking connects on behalf of the Connector. |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::ACE_NonBlocking_Connect_Handler | ( | ACE_Connector_Base< SVC_HANDLER > & | connector, | |
SVC_HANDLER * | sh, | |||
long | timer_id | |||
) | [inline] |
Constructor.
bool ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::close | ( | SVC_HANDLER *& | sh | ) | [inline] |
Close up and return underlying SVC_HANDLER through sh
.
If the return value is true the close was performed succesfully, implying that this object was removed from the reactor and thereby (by means of reference counting decremented to 0) deleted. If the return value is false, the close was not successful. The sh
does not have any connection to the return value. The argument will return a valid svc_handler object if a valid one exists within the object. Returning a valid svc_handler pointer also invalidates the svc_handler contained in this object.
SVC_HANDLER * ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::svc_handler | ( | void | ) | [inline] |
Get SVC_HANDLER.
ACE_HANDLE ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::handle | ( | void | ) |
Get handle.
void ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::handle | ( | ACE_HANDLE | ) |
Set handle.
long ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::timer_id | ( | void | ) | [inline] |
Get timer id.
void ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::timer_id | ( | long | timer_id | ) | [inline] |
Set timer id.
int ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::handle_input | ( | ACE_HANDLE | ) | [inline, virtual] |
int ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::handle_output | ( | ACE_HANDLE | handle | ) | [inline, virtual] |
int ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::handle_exception | ( | ACE_HANDLE | fd | ) | [inline, virtual] |
Called by ACE_Reactor when asynchronous connections suceeds (on some platforms only).
Reimplemented from ACE_Event_Handler.
int ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::handle_timeout | ( | const ACE_Time_Value & | tv, | |
const void * | arg | |||
) | [inline, virtual] |
This method is called if a connection times out before completing.
Reimplemented from ACE_Event_Handler.
int ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::resume_handler | ( | void | ) | [inline, virtual] |
Should Reactor resume us if we have been suspended before the upcall?
Reimplemented from ACE_Event_Handler.
void ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::dump | ( | void | ) | const [inline] |
Dump the state of an object.
ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
ACE_Connector_Base<SVC_HANDLER>& ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::connector_ [private] |
Connector base.
SVC_HANDLER* ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::svc_handler_ [private] |
Associated SVC_HANDLER.
long ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::timer_id_ [private] |
Associated timer id.