On Fri, Oct 10, 2008 at 01:17:30PM -0400, John Duncan wrote:
> If the socket is set not to block, then the socket will read as much
> data as is available and the underlying read call will return the
Yes, but in blocking mode it will also read only as many bytes as are
> number of bytes read, right? So the poll will still be useful in an
> nbio world.
Yep. So there is not really a fundamental difference between the
capabilities of blocking and nonblocking sockets, when select() is used.
But nonblocking mode has a few advantages in pathological situations.
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]