SystemSignalHandler Class Reference

The general handler of signals to daemon process. More...

Inheritance diagram for SystemSignalHandler:

AbstractSignalHandler

List of all members.

Public Member Functions

void onSystemSignal ()
 Notifies there was system signal and it must be handled.
 SystemSignalHandler (ClientList &clients, OutputSet &outputSet, ProtocolHandler &protocolHandler, ExecutorInterface &executorInterface)
 The constructor.
virtual ~SystemSignalHandler ()
 The destructor.


Detailed Description

This class receives notifications from server main loop about received system signals. Main loop does not provide any information about the signal was received. This class must check flags set by functions called automatically by kernel on each signal and decide which exact signal must be handled.

Constructor & Destructor Documentation

SystemSignalHandler::SystemSignalHandler ( ClientList &  clients,
OutputSet outputSet,
ProtocolHandler protocolHandler,
ExecutorInterface executorInterface 
) [inline]

Parameters:
[in] The reference to list of connected clients
[in] outputSet The reference to used output set object
[in] protocolHandler The reference to used protocol handler object
[in] executorInterface The reference to executor interface object


Member Function Documentation

void SystemSignalHandler::onSystemSignal (  )  [inline, virtual]

This method is called by main loop class each time when pselect() system call is interrupted with EINTR exit code. It means the process have received system signal and it must be handled.

Implements AbstractSignalHandler.


Generated on Thu May 6 16:10:58 2010 for VoiceMan by  doxygen 1.5.9