Re: select is not working for me
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.