• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: select not setting the read flag (followup)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: select not setting the read flag (followup) (From: Nicolas Berloquin <email@hidden>)

  • Prev by Date: Re: select not setting the read flag (followup)
  • Next by Date: GestaltUSBVersion
  • Previous by thread: Re: select not setting the read flag (followup)
  • Next by thread: Re: select not setting the read flag (SOLVED)
  • Index(es):
    • Date
    • Thread