I'm writing a simple set of communication functions, based on
sockets. The basic requirement is that *no* polling should be done to
detect incoming data. An user-supplied function has to be
automatically called when a socket has data waiting to be read.
As far as I know this should be possible since a SIGIO signal should
be issued when such a condition occurs.
Unfortunately, I'm not able to set asynchronous notification of
pending I/O requests on my Linux machine. The whole thing is made
possible on an HP/UX system via the two following ioctl calls:
ioctl(socket, SIOCSPGRP, &prcid);
ioctl(socket, FIOASYNC, &flag);
any suggestion, or pointer to some documentation, will be