Sujet : Re: The joy of Linux
De : bowman (at) *nospam* montana.com (rbowman)
Groupes : alt.folklore.computers comp.os.linux.miscDate : 25. Oct 2024, 01:30:42
Autres entêtes
Message-ID : <lo075hF9c0pU1@mid.individual.net>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Pan/0.149 (Bellevue; 4c157ba)
On Thu, 24 Oct 2024 22:30:47 GMT, Scott Lurndal wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
On 24 Oct 2024 17:02:02 GMT, rbowman wrote:
>
RS6000 is big endian and the ONC-RPC XDR encoding is big endian across
the network. The Linux boxes would swap the order when decoding the
XDR.
>
Linux runs on hardware of both kinds of endianness. This is why you have
functions like htons/htonl etc
Those functions predate linux.
Yes, and they wouldn't be too helpful when dealing with XDR. That comes
with its own set of data types and functions.
https://fiona.dmcs.pl/rso/du/onc-rpc5.htmlIt's old and clunky but having worked with both I don't know if it's any
worse than Google's protobuf invention,
https://en.wikipedia.org/wiki/Protocol_Buffers