( the UDP socket ) blocks if the UDP buffer has been emptied
I assume you mean that reading on the socket blocks if it is empty. You should be able to read the UDP socket to see if there is data on it. With fcntl's F_SETFL and O_NONBLOCK set, you should be able to read the socket until there is nothing to read. I have done this more than once on *nix systems with UDP sockets and IO::Select.
HTH, --traveler
In reply to Re: IO::Select vs select function
by traveler
in thread IO::Select vs select function
by geektron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |