XDR Operation Directions
The XDR subroutines are not dependent on direction. The operation direction represented by xdrs->xop can have an XDR_ENCODE, XDR_DECODE, or XDR_FREE value.
These operation values are handled internally by the XDR subroutines, which means the same XDR subroutine can be called to serialize or deserialize data. To achieve this independence, XDR passes the address of the object instead of passing the object itself.