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
1
vote
0 answers

getXDomainRequest not working on IE but works anywhere else

I have this function which returns some XML datas from a foreign website : function sendData() { var dev_statut = jQuery("select[name='statut']").val(); var dev_fdpaysid = jQuery("select[name='pays']").val(); var dev_fddeffet…
user990463
  • 439
  • 1
  • 7
  • 27
0
votes
1 answer

Using RPC on same host without using XDr

I'm toying with the idea of using RPC ( remote procedure calls ) on Linux to communicate between two processes on the SAME server. Therefore the data format of multi-byte variables will be the same and really won't need to be transformed using XDR.…
Chimera
  • 5,884
  • 7
  • 49
  • 81
0
votes
1 answer

Rails - How to fake PUT or DELETE request using XDomainRequest in IE

How can I fake a PUT or DELETE request using XDomainRequest in IE? Or do I need to use an iframe transport? I'm trying to access a restful API that's setup for CORS. It works in all other browsers but I can't figure out how to fake the PUT/DELETE…
colllin
  • 9,442
  • 9
  • 49
  • 65
0
votes
2 answers

Shared XDR routines and pointer to .rodata section

I used rpcgen to generate the client and server stub for program I'm developing. So, the stubs use XDR to encapsulate data and send them through the net. When I execute this piece of code, a segmentation fault is thrown: char *str =…
Dario
  • 215
  • 2
  • 10
0
votes
1 answer

Problem reading in file written with xdr using c

I am using Ubuntu 10.4 and have two (long) C programs, one that writes a file using XDR, and one that uses this file as input. However, the second program does not manage to read in the written file. Everything looks perfectly fine, it just does not…
Inga
  • 1
  • 1
0
votes
0 answers

Issue with sending XDR serialized data fron C to Python

I am trying to serialize a structure in C using XDR and send the serialized data to python over a tcp socket. I tried using xdrmem_create() to create an XDR stream , call appropriate pack functions and pass the character array to a socket, to…
Eddy
  • 1
  • 2
0
votes
0 answers

Serialization using XDR RFC 4506

I need to serialize some R objects into an XDR format that complies to RFC 4506 standards. I know about serialize: serialize("Hello world", NULL) # xdr = TRUE # [1] 58 0a 00 00 00 02 00 03 04 02 00 02 03 00 00 00 00 10 00 00 00 01 00 04 00 09 00 00…
Oliver Frost
  • 827
  • 5
  • 18
0
votes
1 answer

RPC communication using XDR language between two hosts

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?
Harsha
  • 323
  • 1
  • 17
0
votes
1 answer

How to use generated XDR structures from .x file (memory allocation)

I would please like some help with this case. I need to send one XDR message, that it's composed by 2 files (switch case == OK). Assuming I have in my code a message object called response: message response; If I had to only send one file in a…
JoannaM
  • 13
  • 3
0
votes
0 answers

xdr_mem.c: No such file or directory

I wrote a C server that should send to a client the file it requested through the XDR library, using the buffer paradigm. The program uses a custom struct. enum tagtype { GET = 0, OK = 1, QUIT = 2, ERR = 3 }; struct file { opaque…
Manzo Gray
  • 33
  • 1
  • 4
0
votes
0 answers

xdrstdio_create: blocking calls

I am trying to use the rpc/xdr.h library to develop a simple client/server interaction. I am using the "direct connection", in which the xdr library will receive on the socket and return the translated data: XDR xdrs_in; FILE*…
Tu.Ma.
  • 1,325
  • 10
  • 27
0
votes
1 answer

What is the relationship of the XDR protocol endianess and network byte order?

The XDR protocol uses big endian. How does this relate to the concept of network byte order? Is it a direct consequence, or are they independent? I guess what I'm trying to ask is at which ISO/OSI layer is the network byte order defined. XDR…
user129186
  • 1,156
  • 2
  • 14
  • 30
0
votes
2 answers

ONC RPC Send a char in a struct from server

I have a problem when I send a string from the server to the client, it only sends a char with the number '1'. rpc.x struct IdentIP{ char *ip; int puerto; }; program SERVIDORCHAT { version BASICA { IdentIP query(string) = 3; …
mbayon
  • 103
  • 4
0
votes
1 answer

XDomainRequest object caching/asynchronous call issue

I have an aspx page on which I am using XDomainRequest object to populate two div(s) with html returned from AJAX response. I have used Jquery to get the divs and perform "each()" on the retrieved List var divs = $("div"); divs.each(function(index)…
Furqan Hameedi
  • 4,372
  • 3
  • 27
  • 34
0
votes
1 answer

RPC: Interfacing C# and legacy C++ XDR

I have multiple legacy devices with defined RPC interfaces, written in C++ XDR (.x) files. I need to access these devices from a modern C# application, in other words to implement new RPC C# client matching old C++ RPC servers. One of the free…
Igor_K
  • 25
  • 6