Re: OpenTransport behaviour under X
Re: OpenTransport behaviour under X
- Subject: Re: OpenTransport behaviour under X
- From: Marc Stibane <email@hidden>
- Date: Mon, 27 Oct 2003 18:07:57 +0100
>
With synchronous, you basically want to handle events as they happen.
Yes.
>
Are you polling OTLook in a thread?
Worse, in a loop. I didn't write the code, I just got the job to bring it
to MacOS X.
>
The first time you receive a message that you have T_Data on the line,
>
you can grab the bits of it with OTRcv...
Sure. The code even asks how much data there is to not attempt to read
too much (and then block).
But after it successfully reads 1 byte, it calls OTLook again - which on
OS9 again returned T_Data, but on OSX returns 0.
>
Oh and by the way, our program does broadcast to 255.255.255.255
>
successfully under OS X - but I may have to change that as I think Internet
>
Security programs are mucking things up :)
Well, my code did also send out packets to 255.255.255.255. But the
server on the other end didn't think it should accept the packets, since
the Ethernet Address in the packet header wasn't set to the correct local
subnet broadcast address. Funny, OT on 9 native and on Classic do set
this automagically.
I had no problem fixing this, since it is really better code to supply
the correct address, but I am stumped whether the OTLook behaviour change
on X is a bug or can be changed with some configuration to the old OS 9
behaviour.
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.