Re: select not setting the read flag (followup)
Re: select not setting the read flag (followup)
- Subject: Re: select not setting the read flag (followup)
- From: Ian Lister <email@hidden>
- Date: Thu, 27 May 2004 11:25:45 +1000
On Thu, 27 May 2004, Nicolas Berloquin wrote:
>
I logged the return values of the select call, and the read bit is NOT
>
set for
>
that descriptor until it suddenly gets "unstuck".
Are you absolutely certain that (a) you are calling select while there is
data in the read queue, (b) you are calling it with the read bit set for
the appropriate descriptor, and (c) you are calling it with nfds set
sufficiently high (at least one greater than the highest FD you are
interested in)?
Logging FD_ISSET(fd, &readfds) before and after calling select, as well as
fd and whatever value you are passing as nfds would be the most useful
things you can do.
Ian
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.