Repost: OpenTransport problems under X
Repost: OpenTransport problems under X
- Subject: Repost: OpenTransport problems under X
- From: Marc Stibane <email@hidden>
- Date: Wed, 5 Nov 2003 17:52:38 +0100
It seems nobody uses OpenTransport under X anymore. Well, at least nobody
answered my postings :-(
I make it short:
OTLook keeps returning 0 after the first successful transmission though
I've sent another command and my RIP answered with another packet (which
I can see in ethereal on my 2nd Mac).
1a. send command to RIP -> RIP answers (8bytes)
1b. OTLook returns T_DATA once
1c. read exactly 8 bytes so ALL bytes have been read from OT buffer
1d. switch to nonblocking
1e. try to read from (empty) buffer (kOTNoDataErr) just to show OT that I
know the buffer's empty and please would like to get notified when new
data arrives
1f. back to blocking
2a. send next command to RIP
2b. start polling OTLook in a loop
2c. RIP answers within a few millisecs
2d. OTLook keeps returning 0 instead of T_DATA, so my app hangs in that
loop, never getting the answer.
When debugging (setting breakpoints after OTSnd) the timing is of course:
3a. send next command to RIP
BREAKPOINT
3b. RIP answers within a few millisecs
RUN
3c. start polling OTLook in a loop
3d. OTLook returns T_DATA immediately, thus leaving the loop
What else can I do after 1c to make OTLook in 2d return T_DATA when new
data arrives?
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.