RPC communication using XDR language between two hosts

82 views Asked by At

How does XDR language ensure that communication between two hosts (same or different architecture/instruction set) is independent of endianness and instruction set of hosts?

1

There are 1 answers

0
asynchronos On

The protocol has its own endianness on the wire which all hosts must respect. Hosts without matching native endianness have to flip the byte order of values they transmit and receive.

The instruction set should not matter, as message formatting, parsing and transport code is generated and compiled distinctly for both client and server. As with so many network protocols.