On 2/9/06, William T Goodall <[EMAIL PROTECTED]> wrote:
>
>
> The networking standard for data is big-endian so if you poke about
> in any low level buffers on a little-endian machine at network level
> the data might be in the wrong order[1]. Or there's PDP11s and VAXen
> and such which mix it up even more. You can have 4321, 1234, 2143,
> 3412 as bytes in a 32-bit word at machine level.
>
> That's why there's system calls for this stuff :)
>
> It's 15 years since I had to write some modbus stuff on a VAX to
> interface with modbus via ethernet and had to deal with this. And the
> difference between VAX floats and IEEE floats required some bit-
> twiddling...


You worked on PDP11's?  You must be a good bit older than I thought, or you
got stuck working on some pretty dated hardware!  :-)
_______________________________________________
http://www.mccmedia.com/mailman/listinfo/brin-l

Reply via email to