Re: OpenTransport behaviour under X
Re: OpenTransport behaviour under X
- Subject: Re: OpenTransport behaviour under X
- From: Marc Stibane <email@hidden>
- Date: Mon, 3 Nov 2003 17:21:49 +0100
>
It gets worse.
Again.
I wrote a workaround routine...
static void EmptyBuffer(EndpointRef ep) {
// try to reset OTLook
OTResult result = OTSetNonBlocking(ep);
OTFlags otflags;
short dummy = 0;
do {
result = OTRcv(ep, &dummy, 2, &otflags);
} while (kOTNoDataErr != result);
result = OTSetBlocking(ep);
}
... which I call just prior to each OTSnd.
When I debug my code and set a breakpoint after each OTSnd call now
everything works. I can (slowly) query my RIP and get the expected
answers. Fine.
When I run that code without debugger, again OTLook doesn't return T_DATA.
Do I really have to WAIT after OTSnd before I can call OTLook? I tried to
insert calls to OTIdle, but again the code hangs inside my loop which
waits for OTLook to return T_DATA.
Ideas, anyone?
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.