25.4 SummarySignal-driven I/O has the kernel notify us with the SIGIO signal when "something" happens on a socket.
We modified our UDP echo server to use signal-driven I/O, using a technique similar to that used by NTP: read a datagram as soon as possible after it arrives to obtain an accurate timestamp for its arrival and then queue it for later processing. |