Re: Repost: OpenTransport problems under X
Re: Repost: OpenTransport problems under X
- Subject: Re: Repost: OpenTransport problems under X
- From: Mike Cohen <email@hidden>
- Date: Wed, 5 Nov 2003 13:30:02 -0500
I use OT, but I use it asynchronously rather than polling with OTLook.
When I get a T_DATA event, I read any available data and will keep
reading until it returns no more data. I then reliably get another
T_DATA event when more data is available.
On Nov 5, 2003, at 11:52 AM, Marc Stibane wrote:
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.
--
Mike Cohen
*** email@hidden
***
http://www.mcdevzone.com/
*** Software Development - Web Site Development - Consulting
_______________________________________________
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.