Re: select is not working for me
Re: select is not working for me
- Subject: Re: select is not working for me
- From: Ian Lister <email@hidden>
- Date: Mon, 20 Oct 2003 07:10:03 +1000 (EST)
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.
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.