Using XDR library functions
XDR library functions are a set of C functions supplied with ONC RPC, which application programmers can use when writing XDR routines.
They can be used
as follows, depending on the complexity of the structure pointed to by the
call argument and reply parameters.
- For parameters that are simple single-field C data types
- Use an XDR library function for inproc and outproc.
- For parameters that are C data type vectors, arrays, strings, and so on
- Use an XDR library function for inproc and outproc.
- For more complex structures
- Write an XDR routine, using XDR library functions as required. Alternatively, use the RPCGEN compiler, described in RPCGEN compiler, to create an XDR routine from an XDR data description.
CICS ONC RPC: CICS® ONC RPC supports the use of the XDR library
functions that support data conversion.