Kea  2.1.7-git
isc::asiolink::IOSignalSetImpl Class Reference

Implementation class of IOSignalSet. More...

+ Inheritance diagram for isc::asiolink::IOSignalSetImpl:

Public Member Functions

 IOSignalSetImpl (IOServicePtr io_service, IOSignalHandler handler)
 Constructor. More...
 
 ~IOSignalSetImpl ()=default
 Destructor. More...
 
void add (int signum)
 Add a signal to the ASIO signal set. More...
 
void install ()
 Install the callback on the IO service queue. More...
 
void remove (int signum)
 Remove a signal from the ASIO signal set. More...
 

Detailed Description

Implementation class of IOSignalSet.

Definition at line 23 of file io_service_signal.cc.

Constructor & Destructor Documentation

◆ IOSignalSetImpl()

isc::asiolink::IOSignalSetImpl::IOSignalSetImpl ( IOServicePtr  io_service,
IOSignalHandler  handler 
)

Constructor.

Parameters
io_servicethe process IO service.
handlerthe signal handler.

Definition at line 65 of file io_service_signal.cc.

References install().

+ Here is the call graph for this function:

◆ ~IOSignalSetImpl()

isc::asiolink::IOSignalSetImpl::~IOSignalSetImpl ( )
default

Destructor.

Member Function Documentation

◆ add()

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

Add a signal to the ASIO signal set.

Parameters
signumthe signal number.

Definition at line 93 of file io_service_signal.cc.

References isc_throw, and isc::Exception::what().

+ Here is the call graph for this function:

◆ install()

void isc::asiolink::IOSignalSetImpl::install ( )

Install the callback on the IO service queue.

Definition at line 87 of file io_service_signal.cc.

Referenced by IOSignalSetImpl().

◆ remove()

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

Remove a signal from the ASIO signal set.

Parameters
signumthe signal number.

Definition at line 103 of file io_service_signal.cc.

References isc_throw, and isc::Exception::what().

+ Here is the call graph for this function:

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