ACE_Event_Handler_T< T > Class Template ReferenceEnable a class that doesn't inherit from the ACE_Event_Handler to be incorporated into the ACE_Reactor framework. Thanks to Greg Lavender (g.lavender@isode.com) for sharing this idea. More...
Inheritance diagram for ACE_Event_Handler_T< T >:
![]()
Collaboration diagram for ACE_Event_Handler_T< T >:
![]()
Detailed Descriptiontemplate<class T>
Enable a class that doesn't inherit from the ACE_Event_Handler to be incorporated into the ACE_Reactor framework. Thanks to Greg Lavender (g.lavender@isode.com) for sharing this idea.
|
typedef ACE_HANDLE(T::* ACE_Event_Handler_T< T >::GET_HANDLE)(void) const |
typedef void(T::* ACE_Event_Handler_T< T >::SET_HANDLE)(ACE_HANDLE) |
typedef int(T::* ACE_Event_Handler_T< T >::IO_HANDLER)(ACE_HANDLE) |
Handle I/O events.
typedef int(T::* ACE_Event_Handler_T< T >::TO_HANDLER)(const ACE_Time_Value &, const void *) |
Handle timeout events.
typedef int(T::* ACE_Event_Handler_T< T >::CL_HANDLER)(ACE_HANDLE, ACE_Reactor_Mask) |
Handle close events.
typedef int(T::* ACE_Event_Handler_T< T >::SIG_HANDLER)(int, siginfo_t *, ucontext_t *) |
= Initialization and termination methods.
ACE_Event_Handler_T< T >::ACE_Event_Handler_T | ( | T * | op_handler, | |
int | delete_handler, | |||
GET_HANDLE | get_handle = 0 , |
|||
IO_HANDLER | input = 0 , |
|||
CL_HANDLER | close = 0 , |
|||
SIG_HANDLER | sig = 0 , |
|||
TO_HANDLER | timeout = 0 , |
|||
IO_HANDLER | output = 0 , |
|||
SET_HANDLE | set_handle = 0 , |
|||
IO_HANDLER | except = 0 | |||
) | [inline] |
Initialize the op_handler.
ACE_Event_Handler_T< T >::~ACE_Event_Handler_T | ( | void | ) | [inline] |
Close down and delete the <op_handler>.
ACE_HANDLE ACE_Event_Handler_T< T >::get_handle | ( | void | ) | const [inline, virtual] |
void ACE_Event_Handler_T< T >::set_handle | ( | ACE_HANDLE | ) | [inline, virtual] |
int ACE_Event_Handler_T< T >::handle_input | ( | ACE_HANDLE | fd = ACE_INVALID_HANDLE |
) | [inline, virtual] |
int ACE_Event_Handler_T< T >::handle_output | ( | ACE_HANDLE | fd = ACE_INVALID_HANDLE |
) | [inline, virtual] |
Called when output events are possible (e.g., when flow control abates or non-blocking connection completes).
Reimplemented from ACE_Event_Handler.
int ACE_Event_Handler_T< T >::handle_exception | ( | ACE_HANDLE | fd = ACE_INVALID_HANDLE |
) | [inline, virtual] |
int ACE_Event_Handler_T< T >::handle_timeout | ( | const ACE_Time_Value & | current_time, | |
const void * | act = 0 | |||
) | [inline, virtual] |
Called when timer expires. current_time represents the current time that the <Event_Handler> was selected for timeout dispatching and act is the asynchronous completion token that was passed in when <schedule_timer> was invoked.
Reimplemented from ACE_Event_Handler.
int ACE_Event_Handler_T< T >::handle_close | ( | ACE_HANDLE | handle, | |
ACE_Reactor_Mask | close_mask | |||
) | [inline, virtual] |
Called when a <handle_*()> method returns -1 or when the <remove_handler> method is called on an ACE_Reactor. The close_mask indicates which event has triggered the <handle_close> method callback on a particular handle.
Reimplemented from ACE_Event_Handler.
int ACE_Event_Handler_T< T >::handle_signal | ( | int | signum, | |
siginfo_t * | = 0 , |
|||
ucontext_t * | = 0 | |||
) | [inline, virtual] |
Called when object is signaled by OS (either via UNIX signals or when a Win32 object becomes signaled).
Reimplemented from ACE_Event_Handler.
ACE_INLINE T * ACE_Event_Handler_T< T >::op_handler | ( | void | ) | [inline] |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE void ACE_Event_Handler_T< T >::op_handler | ( | T * | op | ) | [inline] |
ACE_INLINE ACE_Event_Handler_T< T >::GET_HANDLE ACE_Event_Handler_T< T >::handle_get | ( | void | ) | [inline] |
void ACE_Event_Handler_T< T >::handle_get | ( | GET_HANDLE | ) |
ACE_INLINE ACE_Event_Handler_T< T >::SET_HANDLE ACE_Event_Handler_T< T >::handle_set | ( | void | ) | [inline] |
void ACE_Event_Handler_T< T >::handle_set | ( | SET_HANDLE | ) |
ACE_INLINE ACE_Event_Handler_T< T >::IO_HANDLER ACE_Event_Handler_T< T >::input_handler | ( | void | ) | [inline] |
void ACE_Event_Handler_T< T >::input_handler | ( | IO_HANDLER | ) |
ACE_INLINE ACE_Event_Handler_T< T >::IO_HANDLER ACE_Event_Handler_T< T >::output_handler | ( | void | ) | [inline] |
void ACE_Event_Handler_T< T >::output_handler | ( | IO_HANDLER | ) |
ACE_INLINE ACE_Event_Handler_T< T >::IO_HANDLER ACE_Event_Handler_T< T >::except_handler | ( | void | ) | [inline] |
void ACE_Event_Handler_T< T >::except_handler | ( | IO_HANDLER | ) |
ACE_INLINE ACE_Event_Handler_T< T >::TO_HANDLER ACE_Event_Handler_T< T >::to_handler | ( | void | ) | [inline] |
void ACE_Event_Handler_T< T >::to_handler | ( | TO_HANDLER | ) |
ACE_INLINE ACE_Event_Handler_T< T >::CL_HANDLER ACE_Event_Handler_T< T >::cl_handler | ( | void | ) | [inline] |
void ACE_Event_Handler_T< T >::cl_handler | ( | CL_HANDLER | ) |
ACE_INLINE ACE_Event_Handler_T< T >::SIG_HANDLER ACE_Event_Handler_T< T >::sig_handler | ( | void | ) | [inline] |
void ACE_Event_Handler_T< T >::sig_handler | ( | SIG_HANDLER | ) |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL void ACE_Event_Handler_T< T >::dump | ( | void | ) | const [inline] |
Dump the state of an object.
ACE_Event_Handler_T< T >::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
T* ACE_Event_Handler_T< T >::op_handler_ [protected] |
Pointer to the object that handles all the delegated operations.
IO_HANDLER ACE_Event_Handler_T< T >::input_handler_ [protected] |
IO_HANDLER ACE_Event_Handler_T< T >::output_handler_ [protected] |
IO_HANDLER ACE_Event_Handler_T< T >::except_handler_ [protected] |
TO_HANDLER ACE_Event_Handler_T< T >::to_handler_ [protected] |
Handle timeout events.
CL_HANDLER ACE_Event_Handler_T< T >::cl_handler_ [protected] |
Handle close events.
SIG_HANDLER ACE_Event_Handler_T< T >::sig_handler_ [protected] |
Handle signal events.
int ACE_Event_Handler_T< T >::delete_handler_ [protected] |
Keeps track of whether we need to delete the handler in the destructor.
SET_HANDLE ACE_Event_Handler_T< T >::set_handle_ [protected] |
GET_HANDLE ACE_Event_Handler_T< T >::get_handle_ [protected] |