libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
|
#include <AlarmHandler.h>
Public Member Functions | |
AlarmHandler () | |
AlarmHandler (FILE *s) | |
AlarmHandler (ostream &) | |
virtual void | handle_signal (int signum) |
virtual | ~AlarmHandler () |
Handle the time out alarm. When an OPeNDAP server runs until the time out alarm is triggered, this class provides the concrete implementation of EventHandler::handle_signal().
Definition at line 44 of file AlarmHandler.h.
|
inline |
Definition at line 51 of file AlarmHandler.h.
|
inlineexplicit |
Definition at line 53 of file AlarmHandler.h.
|
inlineexplicit |
Store information to be used by the handler.
out | Write to this stream. |
Definition at line 60 of file AlarmHandler.h.
|
inlinevirtual |
Definition at line 62 of file AlarmHandler.h.
|
inlinevirtual |
Handle an alarm signal. When one of our servers gets an alarm, that means it has hit its time out. We need to dump two CRLF pairs down the stream and then send an Error object explaining that a timeout has been reached.
Because this is a signal handler, it should call only reentrant system services, functions, et cetera. This handler never returns to the code that was running when the alarm signal was raised.
signum | We know it is SIGALRM; here as a check |
Implements libdap::EventHandler.
Definition at line 78 of file AlarmHandler.h.