![]() |
Kea 2.2.0
|
Implements an asynchronous "signal" for IOService driven processing. More...
#include <io_service_signal.h>
Public Member Functions | |
| IOSignalSet (asiolink::IOServicePtr io_service, IOSignalHandler handler) | |
| Constructor. More... | |
| ~IOSignalSet ()=default | |
| Destructor. More... | |
| void | add (int signum) |
| Add a signal to the list of signals to handle. More... | |
| void | remove (int signum) |
| Remove a signal from the list of signals to handle. More... | |
Implements an asynchronous "signal" for IOService driven processing.
This class allows a OS signal such as SIGHUP to propagated to an IOService as a ready event with a callback using boost ASIO.
Definition at line 26 of file io_service_signal.h.
| isc::asiolink::IOSignalSet::IOSignalSet | ( | asiolink::IOServicePtr | io_service, |
| IOSignalHandler | handler | ||
| ) |
Constructor.
| io_service | IOService to which to send the signal. |
| handler | Handler to call when a signal is received. |
Definition at line 112 of file io_service_signal.cc.
|
default |
Destructor.
| void isc::asiolink::IOSignalSet::add | ( | int | signum | ) |
Add a signal to the list of signals to handle.
| signum | Signal number. |
| Unexpected | on error. |
Definition at line 119 of file io_service_signal.cc.
| void isc::asiolink::IOSignalSet::remove | ( | int | signum | ) |
Remove a signal from the list of signals to handle.
| signum | Signal number. |
| Unexpected | on error. |
Definition at line 124 of file io_service_signal.cc.