Ramachandran.A wrote:
> I am using select to wait for event on a number of TCP sockets
> ...
>
> Suppose data comes on a socket (say fd1) ... but i only do a
> partial read of the data .....
> and then I go back to wait on the select ....
>
> Will select return immediatly indicating that the socket (fd1)
> contains data .....
> or it will return only when more data is rxed into the buffer for
> socket (fd1) ....
select() will return as soon as one or more descriptors have data
available. The fact that the data is left over after a previous read()
is irrelevant.
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]