Re: Repost: OpenTransport problems under X [solved]
Re: Repost: OpenTransport problems under X [solved]
- Subject: Re: Repost: OpenTransport problems under X [solved]
- From: Quinn <email@hidden>
- Date: Thu, 27 Nov 2003 16:32:55 +0000
At 10:01 -0600 27/11/03, Marc Epard wrote:
Shouldn't the first argument be skt+1?
Yes. The first argument to select is not the number of sockets in
the select set, it's the size of the select set. In the general case
you derive this by calculating the maximum file descriptor number of
the sockets that you put in the set. You can see this in my
SocketCancel sample code.
<
http://developer.apple.com/samplecode/Sample_Code/Networking/SocketCancel/SocketCancel.c.htm>
In the simple case, where there's only one socket, you can just pass skt+1.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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.