XDR with RPC

The XDR subroutines and macros may be called explicitly or by a Remote Procedure Call (RPC) subroutine.

When using XDR with RPC, clients do not create data streams. Instead, the RPC interface creates the streams. The RPC interface passes the information about a data stream as opaque data in the form of handles. This opaque data handle is referred to in subroutines as the xdrs parameter. Programmers who use C language programs with XDR subroutines must include the rpc/xdr.h file, which contains the necessary XDR interfaces.