The contents of this legacy page are no longer maintained nor supported, and are made available only for historical purposes.


Signal Documentation

Signal


[ libCfd | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class Signal

{

public:
Signal(int sigNum);
int Block();
int IsBlocked();
int Unblock();
int IsPending();
int InstallHandler(void (*handler)(int));
int RemoveHandler();
int Caught();
void Catch();
protected:
}; // Signal

Back to the top of Signal


DESCRIPTION


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
class Signal
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Abstracts a UNIX signal.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Back to the top of Signal


Signal(int sigNum);


-------------------------------------------------------------------------
Signal(int sigNum)
.........................................................................
Constructor accepting a signal number (SIGHUP, SIGALRM, etc.).
-------------------------------------------------------------------------

  Signal(int sigNum);

Back to the top of Signal


int Block();


-------------------------------------------------------------------------
int Block()
.........................................................................
Block the signal.
-------------------------------------------------------------------------

  int Block();

Back to the top of Signal


int IsBlocked();


-------------------------------------------------------------------------
int IsBlocked()
.........................................................................
Returns 1 if signal is currently being blocked, else returns 0.
-------------------------------------------------------------------------

  int IsBlocked();

Back to the top of Signal


int Unblock();


-------------------------------------------------------------------------
int Unblock()
.........................................................................
Unblocks the signal.
-------------------------------------------------------------------------

  int Unblock();

Back to the top of Signal


int IsPending();


-------------------------------------------------------------------------
int IsPending()
.........................................................................
Returns 1 if the signal is pending (and blocked), else returns 0.
-------------------------------------------------------------------------

  int IsPending();

Back to the top of Signal


int InstallHandler(void (*handler)(int));


-------------------------------------------------------------------------
int InstallHandler(void (*handler)(int))
.........................................................................
Installs 'handler' as signal handler for the signal. Note that this class implements a stack of handlers, so you can push handlers onto the stack up to any depth.
-------------------------------------------------------------------------

  int InstallHandler(void (*handler)(int));

Back to the top of Signal


int RemoveHandler();


-------------------------------------------------------------------------
int RemoveHandler()
.........................................................................
Removes the last installed signal handler for the signal.
-------------------------------------------------------------------------

  int RemoveHandler();

Back to the top of Signal


int Caught();


-------------------------------------------------------------------------
int Caught()
.........................................................................
Returns 1 if the signal was caught, else returns 0.
-------------------------------------------------------------------------

  int Caught();

Back to the top of Signal


void Catch();


-------------------------------------------------------------------------
void Catch()
.........................................................................
Resets the 'caught' state of the signal. This is typically used after the class user has noted that the signal was caught (using Caught()).
-------------------------------------------------------------------------

  void Catch();

Back to the top of Signal


All Members

public:
int Block();
int IsBlocked();
int Unblock();
int IsPending();
int InstallHandler(void (*handler)(int));
int RemoveHandler();
int Caught();
void Catch();
protected:

Back to the top of Signal


Ancestors

Class does not inherit from any other class.

Back to the top of Signal


Descendants

Class is not inherited by any others.

Back to the top of Signal


Generated from source by the Cocoon utilities on Tue Sep 22 04:08:59 1998 .

Report problems to jkotula@unimax.com

Related Objects

See https://catalog.caida.org/software/cflowd/ to explore related objects to this document in the CAIDA Resource Catalog.