[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Communications Programming Concepts

XDR Subroutine Format

An eXternal Data Representation (XDR) subroutine is associated with each data type. XDR subroutines have the following format:

xdr_XXX (XDRSFP)
       XDR *XDRS;
       XXX *FP;
{
}

The parameters are described as follows:

XXX Requires an XDR data type.
XDRS Specifies an opaque handle that points to an XDR stream. The opaque handle pointer is passed to the primitive XDR routines.
FP Specifies an address of the data value that provides data to the stream or receives data from it.

The XDR subroutines usually return a value of 1 if successful. If unsuccessful, the return value is 0. Return values other than these are noted within the description of the appropriate subroutine.


[ Previous | Next | Contents | Glossary | Home | Search ]