Kea 2.6.0
isc::asiolink::IOSignalSet Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ IOSignalSet()

isc::asiolink::IOSignalSet::IOSignalSet ( const asiolink::IOServicePtr io_service,
IOSignalHandler  handler 
)

Constructor.

Parameters
io_serviceIOService to which to send the signal.
handlerHandler to call when a signal is received.

Definition at line 125 of file io_service_signal.cc.

◆ ~IOSignalSet()

isc::asiolink::IOSignalSet::~IOSignalSet ( )

Destructor.

Definition at line 131 of file io_service_signal.cc.

Member Function Documentation

◆ add()

void isc::asiolink::IOSignalSet::add ( int  signum)

Add a signal to the list of signals to handle.

Parameters
signumSignal number.
Exceptions
Unexpectedon error.

Definition at line 136 of file io_service_signal.cc.

◆ remove()

void isc::asiolink::IOSignalSet::remove ( int  signum)

Remove a signal from the list of signals to handle.

Parameters
signumSignal number.
Exceptions
Unexpectedon error.

Definition at line 141 of file io_service_signal.cc.


The documentation for this class was generated from the following files: