Re: Repost: OpenTransport problems under X [solved]
Re: Repost: OpenTransport problems under X [solved]
- Subject: Re: Repost: OpenTransport problems under X [solved]
- From: Eli Green <email@hidden>
- Date: Thu, 27 Nov 2003 11:56:00 -0500
On Thursday, Nov 27, 2003, at 11:38 Canada/Eastern, Marc Stibane wrote:
ret = select(1,&rfds,NULL,NULL,&tv);
Shouldn't the first argument be skt+1?
I use only 1 socket and stuff that into the set:
FD_ZERO(&rfds);
FD_SET(skt,&rfds);
IMHO I tell select to check for 1 set member.
The first parameter to select isn't the number of sockets you pass it,
it's the largest socket descriptor (minus one) it will check. So if
you're only checking one socket, the first parameter should definitely
be skt+1.
_______________________________________________
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.