http://bugs.winehq.org/show_bug.cgi?id=7929
--- Comment #80 from Damjan Jovanovic damjan.jov@gmail.com 2009-09-20 11:49:14 --- I like this approach Erich.
The problems I see are that select() could wake up with no data to read (ie. packet from wrong IP), and async I/O and IOCP could have similar problems. Fixing these spurious wakeups - if necessary - is pretty hard: eg. select() would have to MSG_PEEK recvfrom() every readable UDP socket and then possibly re-recvfrom() to throw away packets from the wrong IP...