[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home |
Legal |
Search ]
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 (XDRS, FP)
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.
[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home |
Legal |
Search ]