Re: OpenTransport behaviour under X
Re: OpenTransport behaviour under X
- Subject: Re: OpenTransport behaviour under X
- From: Marc Stibane <email@hidden>
- Date: Tue, 4 Nov 2003 19:47:19 +0100
>
> 2a. send next command to RIP -> RIP answers
>
> 2b. OTLook returns 0 though new data arrived
>
>
How much time has passed between 2a (reply data enters box)
>
and 2b? I've sometimes seen a delay in OT making data available
>
to applications but haven't been able to reproduce the situation
>
reliably. I'm wondering if this is related...
Well, the timing is like this:
1. send next command to RIP
2. start calling OTLook in a loop
3. RIP answers
4. OTLook keeps returning 0 instead of T_DATA, so my app hangs in that
loop, never getting the answer.
When debugging, the timing is of course:
1. send next command to RIP
2. RIP answers
3. start calling OTLook in a loop
4. OTLook returns T_DATA, thus leaving the loop
As I have written in another mail, I inserted code before 2a to read
beyond the buffer of the last answer I got, thus telling OpenTransport I
saw ALL data and _really want_ to be notified with T_DATA when new data
arrives.
Anything else I could do?
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.