libassa 3.5.1
|
Class SIGALRMHandler handles SIGALRM signal. More...
#include <Handlers.h>
Public Member Functions | |
SIGALRMHandler () | |
Constructor. | |
int | handle_signal (int signum_) |
Receive ALRM signal. | |
sig_atomic_t | alarmed () |
Has alarm gone off? | |
void | resetState () |
Reset internal state. | |
![]() | |
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. | |
void | set_id (const std::string &id_) |
Set EventHandler ID. | |
std::string | get_id () const |
Retrieve EventHandler ID. | |
Private Attributes | |
sig_atomic_t | m_alarm_flag |
Indicator whether alarm gone off yet. | |
Additional Inherited Members | |
![]() | |
std::string | m_id |
Class SIGALRMHandler handles SIGALRM signal.
Definition at line 221 of file Handlers.h.
|
inline |
Constructor.
Definition at line 225 of file Handlers.h.
References ASSA::SIGHAND, and trace_with_mask.
|
inline |
Receive ALRM signal.
Reimplemented from ASSA::EventHandler.
Definition at line 231 of file Handlers.h.
References m_alarm_flag, ASSA::SIGHAND, and trace_with_mask.
Reset internal state.
Reimplemented from ASSA::EventHandler.
Definition at line 245 of file Handlers.h.
References m_alarm_flag.
|
private |
Indicator whether alarm gone off yet.
Definition at line 249 of file Handlers.h.
Referenced by alarmed(), handle_signal(), and resetState().