http://linux.die.net/man/2/signal
"signal() sets the disposition of the signal signum to handler, which is either SIG_IGN, SIG_DFL, or the address of a programmer-defined function (a "signal handler")."
I find the description of what it does to be vague (new to network and linux programming). Is this some sort of callback setting function? Right now my code (which I haven't compiled yet) is using it like:
signal( SIGIO, readMessage );
Where readMessage is a function. SIGIO is defined as:
SIGPOLL is the signal sent to a process when an asynchronous I/O event occurs.
So putting this all together, I can only guess that when some asynchronous I/O event occurs, the function readMessage( int ) is called? Is this like slots/signals in Qt?
One other question I have is, what exactly is considered an I/O event in the context of network programming? Is it an accept call that returns?
aiofunctions such asaio_read,aio_writeand other from theaio.hheader. - Zan Lynx