libassa 3.5.1
|
Class SIGUSR1Handler. More...
#include <Handlers.h>
Public Member Functions | |
SIGUSR1Handler () | |
Constructor. | |
int | handle_signal (int signum_) |
Catch USR1 signal and increment count. | |
sig_atomic_t | received_count () const |
Report count of received signals. | |
void | resetState () |
Set received signals count back to 0. | |
![]() | |
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_count |
Received signals count. | |
Additional Inherited Members | |
![]() | |
std::string | m_id |
|
inline |
Constructor.
Definition at line 117 of file Handlers.h.
References ASSA::SIGHAND, and trace_with_mask.
Catch USR1 signal and increment count.
Reimplemented from ASSA::EventHandler.
Definition at line 123 of file Handlers.h.
References DL, m_count, ASSA::SIGHAND, ASSA::TRACE, and trace_with_mask.
|
inline |
Set received signals count back to 0.
Reimplemented from ASSA::EventHandler.
Definition at line 140 of file Handlers.h.
References m_count.
|
private |
Received signals count.
Definition at line 144 of file Handlers.h.
Referenced by handle_signal(), received_count(), and resetState().