Questions tagged [xdr]

XDR (eXternal Data Representation) is a standard for the description and encoding of data. It is useful for transferring data between different computer architectures, and has been used to communicate data between such diverse machines as the SUN WORKSTATION, VAX, IBM-PC, and Cray. It underlies NFS.

XDR fits into the ISO presentation layer, and is roughly analogous in purpose to X.409, ISO Abstract Syntax Notation. The major difference between these two is that XDR uses implicit typing, while X.409 uses explicit typing.

XDR uses a language to describe data formats. The language can only be used only to describe data; it is not a programming language. This language allows one to describe intricate data formats in a concise manner. The alternative of using graphical representations (itself an informal language) quickly becomes incomprehensible when faced with complexity. The XDR language itself is similar to the C language [1], just as Courier [4] is similar to Mesa. Protocols such as ONC RPC (Remote Procedure Call) and the NFS* (Network File System) use XDR to describe the format of their data.

The XDR standard makes the following assumption: that bytes (or octets) are portable, where a byte is defined to be 8 bits of data. A given hardware device should encode the bytes onto the various media in such a way that other hardware devices may decode the bytes without loss of meaning. For example, the Ethernet* standard suggests that bytes be encoded in "little-endian" style [2], or least significant bit first.

63 questions
0
votes
1 answer

Communication Between 2 Servers (C Language)

I'm trying to make a distributed system where a client sends some information to one server, the server receives the message and forwards it to all other servers. The system utilises RPC and XDR as it's interface definition language. I got the…
proctr
  • 452
  • 4
  • 15
-1
votes
1 answer

Using a c-program to read an NMEA-string

I am trying to make a c-program that will will a string, but I want it only to read a very small part of it. The NMEA-telegram that I try to read is $WIXDR, and do receive the necessary strings. Here's 2 examples of strings that I get into the…
-1
votes
1 answer

Implement the storage of messages in the chat (RPC)

I must implement the chat using Sun RPC (first write XDR file, in the next place generate .c codes by dint of rpcgen). I would like to know how I should implement the storage of messages for users who are registered, but they were OFFLINE, when…
1 2 3 4
5