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
8
votes
1 answer

How to send JSON data in XDR using the POST method

I want to send JSON data in XDR using the POST method. I'm able to send JSON data, however the problem is . (DOT) symbols are converted into _ (underscores). Here is the code: if ($.browser.msie && window.XDomainRequest) { var xdr = new…
Mathankumar
  • 627
  • 1
  • 9
  • 19
6
votes
5 answers

Inconsistent ajax (XDR) response from IE

I'm making an ajax request from an iframe that is injected onto every page via an IE plugin. I'm using IE's cross domain request because jQuery's ajax fails for IE. This works 75% of the time on IE8 & 9. The other 25%, the xdr.onload doesn't even…
Kyle Cureau
  • 19,028
  • 23
  • 75
  • 104
6
votes
1 answer

Python XDR TCP stream

I have a C socket server who receive XDR data. I have wrote a C and a Java client. I am trying to write a Python client using xdrlib. import xdrlib p = xdrlib.Packer() p.pack_int(5) p.pack_int(4) p.pack_int(3) data = p.get_buffer() When i decode…
Stefano
  • 3,981
  • 8
  • 36
  • 66
5
votes
1 answer

Can I read binary data properly through XDomainRequest?

Edit: Taking dennmat's suggestion into consideration, I have managed to simplify my image acquiring script down to a few lines using Image(): window.onload = function(){ var img; capture_canvas = document.createElement('canvas'); …
Axle
  • 396
  • 3
  • 19
4
votes
2 answers

Long Poll and IE's XDomainRequest Object

I'm trying to implement a chat app that uses long polling to get messages from a remote (cross domain) server. Is there any way to do this with a XDomainRequest? It seems my connections always get terminated after a random amount of…
I.Hamer
  • 41
  • 2
4
votes
1 answer

RPC can't decode arguments for TCP transport

I'm working on a multithreaded RPC server based on the example from this page: http://bderzhavets.blogspot.ca/2005/11/multithreaded-rpc-server-in-white-box.html Unfortunately it didn't quite work out of the box, and after chasing the errors for…
Yak Attack
  • 105
  • 2
  • 11
4
votes
1 answer

Can't Encode Arguments in Remote Procedure Call for Server Registration

I'm going a bit crazy trying to figure out why this isn't working. I'm using sunrpc, but the generated server code throws the following: Cannot register service: RPC: Can't encode arguments unable to register (MYRPC, MYRPC_V1, udp). I have no…
JNYRanger
  • 6,829
  • 12
  • 53
  • 81
3
votes
1 answer

IE9 and lower doesn't sends request body on AJAX call to a different domain

I tried everything I found on Google to make it work, but without a success. I'm trying to call an HTTP request to a server on a different domain. On all browser it works, even on IE10. But, on IE9 and lower it doesn't seems to work correctly. On…
Slavik Meltser
  • 9,712
  • 3
  • 47
  • 48
3
votes
1 answer

Ajax Post using iecors plugin

To get around cross Domain issues in ie8 + 9 I started to write my own XDomainRequest wrapper. Until joy, I discovered the iecors jQuery plugin on github https://github.com/dkastner/jquery.iecors. It works by modifying jQuery's AJAX transaction. I…
Jon Wells
  • 4,191
  • 9
  • 40
  • 69
2
votes
0 answers

How to send and receive an image over RPC

I am using Sun XDR RPC in ubuntu 14. I need to send and receive an image over RPC for compression. Here is my .x file onst MAXPARAMNAME = 9024; typedef string prog; struct prognames { prog program1; int index; }; program RPC_PROG {…
cranberry
  • 55
  • 7
2
votes
3 answers

How to send HTTP requests without opening up windows in Javascript?

Now I'm trying to open a series of URLs with window.open for(i=0;i<10;i++) { window.open("myapp://arg1/arg2/arg3/number_"+i); } It works fine except popping up ten windows.And I wonder if there's any way to do this work with windows not shown?…
Young
  • 7,986
  • 7
  • 43
  • 64
2
votes
1 answer

XDR serializing variable lenght array of string

I am serializing a packet over XDR but i do not understand how to provide vector of string. I have here a small fully working serialization / deserialization for a std::vector of uint64_t. Here my code: Serializer: #include #include…
Stefano
  • 3,981
  • 8
  • 36
  • 66
2
votes
1 answer

Understanding XDR specification to create a *.x file

I have been looking through several websites on the Internet and actually wanted to know how do we write specification in a .x file to generate equivalent functions in .c file for RPC. Every site I visited suggested to use following kind of…
Rohit
  • 604
  • 1
  • 10
  • 25
2
votes
1 answer

What is the correct XDR syntax for a variable-length array of strings?

I am reading the RFC 4506 to understand the XDR data definition language. It mentions that variable-length arrays are declared as follows. type-name identifier; It also mentions that variable-length strings are declared as follows. string…
merlin2011
  • 71,677
  • 44
  • 195
  • 329
1
vote
1 answer

Can IE8 post cross-domain requests from HTTP to HTTPS?

I'm trying to make a secure authentication POST request from an HTTP domain to an HTTPS domain using Ajax. For Firefox, Chrome and other modern browsers, it's possible to do this using a CORS request. Unfortunately IE8 and IE9 don't support CORS,…
jqp
  • 657
  • 1
  • 8
  • 18
1
2 3 4 5