We'll wind up this tutorial with a final summary of things that you learnt.
Signal handling is basically connecting a signal to its signal handler
and writing the signal handler itself.
You may connect multiple signals to a single signal handler and a single
signal to multiple signal handler. Just remember that the signal handlers
are executed in the order in which they were connected.
You may pass your own parameters to signal handlers by specifying them
in the arguments to the connect_* functions. Also remember that your
signal handlers must be designed to receive the exact number of
parameters that you specify while connecting the signal to it.
While referring to callbacks that are in an object-oriented context,
remember that the second argument must be an array, the first element of
which must point to the class that the callback belongs to, and the second
element of which must be the name of the callback itself.
Remember the difference between and event and a signal. Also remember that
you may indirectly handle events with their corresponding signals.
Hope this tutorial cleared up things a bit. The only way you'll learn is by
practicing, so, fire up your favorite text editor, and start typing! All the