Re: Repost: OpenTransport problems under X [solved]
Re: Repost: OpenTransport problems under X [solved]
- Subject: Re: Repost: OpenTransport problems under X [solved]
- From: Marc Stibane <email@hidden>
- Date: Thu, 27 Nov 2003 12:59:46 +0100
>
I'm not sure I understand your question properly. Can you supply a
>
little more detail? What's the sequence of calls? My guess is that
>
it's something like this:
>
>
1. call select
>
>
2. it returns indicating that data is available to be read
>
>
3. call read
>
>
4. it returns immediately
>
>
5. call select again
>
>
6. it blocks for the full duration of the timeout, even though you know
>
that data should be available
>
>
Is that right?
Yes. And select returns "1" after the timeout, which means that my socket
has data.
IMHO it should return the moment any data is/becomes available, and after
the timeout it should return 0.
My workaround (don't call select at 5. instead call read until that
returns an error) is sufficient for me.
Marc Stibane
Fesh! email@hidden
Kurf|rstenstr. 154 tel +49-30-3990 2690
10785 Berlin, Germany mobil +49-173-6522 422
In a world without walls and fences,
who needs windows and gates?
_______________________________________________
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.