libassa
3.5.1
|
Class SIGUSR2Handler handles SIGUSR2 signal. More...
#include <Handlers.h>
Public Member Functions | |
SIGUSR2Handler () | |
Constructor. More... | |
int | handle_signal (int signum_) |
Catch USR2 signal and increment count. More... | |
sig_atomic_t | received_count () const |
Report count of received signals. More... | |
void | resetState () |
Set received signals count back to 0. More... | |
![]() | |
EventHandler () | |
Constructor. More... | |
virtual | ~EventHandler () |
Virtual destructor. More... | |
virtual int | handle_read (int fd) |
Read event callback. More... | |
virtual int | handle_write (int fd) |
Write handler callback. More... | |
virtual int | handle_except (int fd) |
Exception handler callback. More... | |
virtual int | handle_timeout (TimerId tid) |
Timeout handler callback. More... | |
virtual int | handle_close (int fd) |
EOF on peer socket handler callback. More... | |
void | set_id (const std::string &id_) |
Set EventHandler ID. More... | |
std::string | get_id () const |
Retrieve EventHandler ID. More... | |
Private Attributes | |
sig_atomic_t | m_count |
Received signals count. More... | |
Additional Inherited Members | |
![]() | |
std::string | m_id |
Class SIGUSR2Handler handles SIGUSR2 signal.
Definition at line 150 of file Handlers.h.
|
inline |
Constructor.
Definition at line 155 of file Handlers.h.
References ASSA::SIGHAND, and trace_with_mask.
|
inlinevirtual |
Catch USR2 signal and increment count.
Reimplemented from ASSA::EventHandler.
Definition at line 161 of file Handlers.h.
References DL, m_count, ASSA::SIGHAND, ASSA::TRACE, and trace_with_mask.
|
inline |
|
inlinevirtual |
Set received signals count back to 0.
Reimplemented from ASSA::EventHandler.
Definition at line 178 of file Handlers.h.
References m_count.
|
private |
Received signals count.
Definition at line 182 of file Handlers.h.
Referenced by handle_signal(), received_count(), and resetState().