|  | Kea 3.1.0
    | 
Implements an asynchronous "signal" for IOService driven processing. More...
#include <io_service_signal.h>
| Public Member Functions | |
| IOSignalSet (const asiolink::IOServicePtr &io_service, IOSignalHandler handler) | |
| Constructor. | |
| ~IOSignalSet () | |
| Destructor. | |
| void | add (int signum) | 
| Add a signal to the list of signals to handle. | |
| void | remove (int signum) | 
| Remove a signal from the list of signals to handle. | |
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 | ( | const 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 125 of file io_service_signal.cc.
| isc::asiolink::IOSignalSet::~IOSignalSet | ( | ) | 
Destructor.
Definition at line 131 of file io_service_signal.cc.
| 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 136 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 141 of file io_service_signal.cc.