• 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 is not working for me
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: select is not working for me


  • Subject: Re: select is not working for me
  • From: Tomas Zahradnicky <email@hidden>
  • Date: Mon, 20 Oct 2003 17:38:12 +0200

On Sun, 19 Oct 2003, Tomas Zahradnicky wrote:
FD_SET(cookie->fSocket, &rdset);

err = select(1, &rdset, NULL, NULL, &tv);

This should be:

err = select(cookie->fSocket + 1, &rdset, NULL, NULL, &tv);

Check the man page for select for details.

I checked the man page but the description what the nfds is is confusing: "The first nfds descriptors are checked in each set; i.e., the descriptors from 0 through nfds-1 in the descriptor sets are examined."

I misunderstood the sentence.


Thanks,

Tomas
--
Ing. Tomas Zahradnicky, Jr.
Production Manager, 24U Software
Associate Member, Filemaker Solutions Alliance
mailto:email@hidden
http://www.24uSoftware.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: select is not working for me
      • From: Quinn <email@hidden>
References: 
 >Re: select is not working for me (From: Ian Lister <email@hidden>)

  • Prev by Date: Re: Obtaining proxy authentication info
  • Next by Date: Setting Network Preferences Programatically
  • Previous by thread: Re: select is not working for me
  • Next by thread: Re: select is not working for me
  • Index(es):
    • Date
    • Thread