libassa 3.5.1
|
CFUNC_Handler class. More...
#include <SigHandlersList.h>
Public Member Functions | |
CFUNC_Handler (C_SIG_HANDLER csigh_) | |
int | handle_signal (int signum_) |
Signal handler callback. | |
C_SIG_HANDLER | handler () |
![]() | |
EventHandler () | |
Constructor. | |
virtual | ~EventHandler () |
Virtual destructor. | |
virtual int | handle_read (int fd) |
Read event callback. | |
virtual int | handle_write (int fd) |
Write handler callback. | |
virtual int | handle_except (int fd) |
Exception handler callback. | |
virtual int | handle_timeout (TimerId tid) |
Timeout handler callback. | |
virtual int | handle_close (int fd) |
EOF on peer socket handler callback. | |
virtual void | resetState (void) |
A hook for derived class to reset internal state as needed. | |
void | set_id (const std::string &id_) |
Set EventHandler ID. | |
std::string | get_id () const |
Retrieve EventHandler ID. | |
Private Attributes | |
C_SIG_HANDLER | m_c_sig_hand |
Additional Inherited Members | |
![]() | |
std::string | m_id |
CFUNC_Handler class.
CFUNC_Handler is a wrapper around C signal handler function. It wraps C signal handler function into EventHandler interface.
Definition at line 44 of file SigHandlersList.h.
|
inline |
Definition at line 370 of file SigHandlersList.h.
References ASSA::SIGHAND, and trace_with_mask.
Signal handler callback.
Reimplemented from ASSA::EventHandler.
Definition at line 378 of file SigHandlersList.h.
References m_c_sig_hand, ASSA::SIGHAND, and trace_with_mask.
|
inline |
|
private |
Definition at line 53 of file SigHandlersList.h.
Referenced by handle_signal(), and handler().