Citation:
Networking Services Library Functions xdr_create(3NSL)
NAME
xdr_create, xdr_destroy, xdrmem_create, xdrrec_create,
xdrstdio_create - library routines for external data
representation stream creation
DESCRIPTION
XDR library routines allow C programmers to describe arbi-
trary data structures in a machine-independent fashion. Pro-
tocols such as remote procedure calls (RPC) use these rou-
tines to describe the format of the data.
These routines deal with the creation of XDR streams. XDR
streams have to be created before any data can be translated
into XDR format.
Routines
See rpc(3NSL) for the definition of the XDR, CLIENT, and
SVCXPRT data structures. Note that any buffers passed to the
XDR routines must be properly aligned. It is suggested that
malloc(3C) be used to allocate these buffers or that the
programmer insure that the buffer address is divisible
evenly by four.