|
libassa 3.5.1
|
SIGINTHandler handles SIGINT signal. More...
#include <Handlers.h>
Public Member Functions | |
| SIGINTHandler () | |
| constructor More... | |
| int | handle_signal (int signum_) |
| Receive SIGINT signal. More... | |
| sig_atomic_t | graceful_quit () |
| Indicates whether graceful quit signal has been raised by the signal handler. More... | |
| void | resetState () |
| Reset state of the object to initial. More... | |
Public Member Functions inherited from ASSA::EventHandler | |
| 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_signal (int signum_) |
| Signal handler callback. More... | |
| virtual int | handle_close (int fd) |
| EOF on peer socket handler callback. More... | |
| virtual void | resetState (void) |
| A hook for derived class to reset internal state as needed. 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_graceful_quit |
| flag that indicates whether signal was caught. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ASSA::EventHandler | |
| std::string | m_id |
SIGINTHandler handles SIGINT signal.
Definition at line 45 of file Handlers.h.
|
inline |
constructor
Definition at line 71 of file Handlers.h.
References ASSA::SIGHAND, and trace_with_mask.
|
inline |
Indicates whether graceful quit signal has been raised by the signal handler.
Definition at line 92 of file Handlers.h.
References m_graceful_quit.
|
inlinevirtual |
Receive SIGINT signal.
Reimplemented from ASSA::EventHandler.
Definition at line 79 of file Handlers.h.
References m_graceful_quit, ASSA::SIGHAND, and trace_with_mask.
|
inlinevirtual |
Reset state of the object to initial.
Reimplemented from ASSA::EventHandler.
Definition at line 99 of file Handlers.h.
References m_graceful_quit, ASSA::SIGHAND, and trace_with_mask.
|
private |
flag that indicates whether signal was caught.
Definition at line 67 of file Handlers.h.
Referenced by graceful_quit(), handle_signal(), and resetState().