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

XDomainRequest for cross-domain ajax gives unintelligible error - emptry error

I have the following ajax call that is supposed to call a page on different domain: if ($.browser.msie && window.XDomainRequest) { // Use Microsoft XDR var xdr = new XDomainRequest(); xdr.open("post",…
oneiros
  • 3,527
  • 12
  • 44
  • 71
1
vote
0 answers

Cannot send data with post by xdr to restful web service wcf

How can I send data with post by xdr: [OperationContract(Name = "app")] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json,UriTemplate="app",BodyStyle=WebMessageBodyStyle.Wrapped, ResponseFormat=WebMessageFormat.Json)] bool…
1
vote
2 answers

Permission denied error when invoking cross domain AJAX using XDomainRequest

I have created a php page that makes use of Google Javascript APIs. I am trying to use Ajax to populate the info windows of the markers dynamically, but get a permission denied error on the xdr.open line. I have checked the other posts relating to…
A11
  • 11
  • 1
  • 2
1
vote
0 answers

Open XDR file in Python

I usually use IDL for data analysis. So when I open a XDR file, I used openr function with /XDR keyword. Now I try to change the IDL code to Python, but I dont know how to read the XDR files. for example in IDL, I can open the file using below…
이원석
  • 87
  • 2
  • 5
1
vote
1 answer

.rds file internal format

I have lost a .rds file due to the device (let's call it volume 1) getting filled up. Usually when that happened R would throw an error and stop. In that case I had a safe copy on a different volume (volume 2). This time however, R would write the…
madsurgeon
  • 33
  • 4
1
vote
1 answer

How to decode stellar XDR

I am working on stellar blockchain and need to decode stellar XDR which is in GO language. I know how to decode using JavaScript but couldn't find a way to do it in GO. //JS code const {Transaction} = require('stellar-base') const parsedTx =…
Thanan_Jaje
  • 109
  • 6
1
vote
1 answer

Problems while compiling XDR on macOS (RPC types.h issue)

I am trying to compile some source codes about UNIX scokets programs, on Linux I have no problems but on macOS I get stuck in front of types definition problems. I don't know how many details I can put here, but I'll try. The source codes to be…
shogitai
  • 1,823
  • 1
  • 23
  • 50
1
vote
1 answer

Good way for sending XDR over TCP Socket

I Have some XDR data packets which are sent over a TCP socket. Here a snippet of my code: const size_t BUFFER_LENGTH = 2000; XDR xdr; char *buffer = new char[BUFFER_LENGTH]; xdrmem_create(&xdr, buffer, BUFFER_LENGTH, XDR_ENCODE); const std::string…
Stefano
  • 3,981
  • 8
  • 36
  • 66
1
vote
1 answer

NFSACL GETACL / SETACL structes

I have a proxy server between the client and server. I use XDR to read and modify NFS messages between them for example if i want to edit the file size for and get attributes reply i use the struct and function GETATTR3res bool_t xdr_GETATTR3res (…
Itay Sela
  • 942
  • 9
  • 26
1
vote
0 answers

How can I print a string received as XDR?

I have a client and a server which communicate eache other with a socket using the XDR notation. Unix environment. The server send a string to client correctly (I checked the number of bytes sended, it is correct), the client receive the string but…
MM92x
  • 548
  • 1
  • 4
  • 25
1
vote
1 answer

Does this RPC xdr copy make sense?

I have this RPC structure T_Struct that came from the wire. I would like to make a copy of it, but I do not want to write a separate function to deal with all structures, allocations, and arrays of its members (especially that I will have to do the…
Grzegorz
  • 3,207
  • 3
  • 20
  • 43
1
vote
1 answer

XDomainRequest onLoad not firing correctly in IE8

I'm firing off a request to the google geocode api to get the latitude and longitude of a given postcode. This works fine in all browsers bar IE8 (shock!). To get around this i've implemented XDomainRequest for IE. /* Convert postcode to…
woolm110
  • 1,194
  • 17
  • 27
1
vote
1 answer

XDomainRequest sometimes randomly aborts

XDomainRequest most of them time works ok but sometimes aborts in ie9 specially. has anyone experienced this before? In case you want to see this is the xdr implementation im using: (function( jQuery ) { if ( window.XDomainRequest ) { …
makeitmorehuman
  • 11,287
  • 3
  • 52
  • 76
1
vote
2 answers

how to specify dataType in XDR request?

i am using XDR for cross domain resource sharing in ie. It works perfectly. I need to know how to specify the return dataType in this. I need to get json as responseText. Here is my code, if (window.XDomainRequest&& $.browser.msie &&…
user1969752
1
vote
0 answers

IE XDR with jQuery fails on remote web host but not local computer

This exact code works when loading the HTML file from my local computer but not while running on my remote host. I'm using the same code as is in the xdr.js jQuery plugin. The error object I print out has a statusText of "Error: Access is…
Manic
  • 143
  • 2
  • 9