# rpc_xdr(3t) - man - phpman

[RPC_XDR(3)](https://www.chedong.com/phpMan.php/man/RPCXDR/3/markdown)               BSD Library Functions Manual               [RPC_XDR(3)](https://www.chedong.com/phpMan.php/man/RPCXDR/3/markdown)

## NAME
     **xdr**___**accepted**___**reply**, **xdr**___**authsys**___**parms**, **xdr**___**callhdr**, **xdr**___**callmsg**, **xdr**___**opaque**___**auth**,
     **xdr**___**rejected**___**reply**, **xdr**___**replymsg** — XDR library routines for remote procedure calls

## SYNOPSIS
### #include <rpc/rpc.h>

     _bool_t_
     **xdr**___**accepted**___**reply**(_XDR_ _*xdrs_, _struct_ _accepted_reply_ _*ar_);

     _bool_t_
     **xdr**___**authsys**___**parms**(_XDR_ _*xdrs_, _struct_ _authsys_parms_ _*aupp_);

     _bool_t_
     **xdr**___**callhdr**(_XDR_ _*xdrs_, _struct_ _rpc_msg_ _*chdr_);

     _bool_t_
     **xdr**___**callmsg**(_XDR_ _*xdrs_, _struct_ _rpc_msg_ _*cmsg_);

     _bool_t_
     **xdr**___**opaque**___**auth**(_XDR_ _*xdrs_, _struct_ _opaque_auth_ _*ap_);

     _bool_t_
     **xdr**___**rejected**___**reply**(_XDR_ _*xdrs_, _struct_ _rejected_reply_ _*rr_);

     _bool_t_
     **xdr**___**replymsg**(_XDR_ _*xdrs_, _struct_ _rpc_msg_ _*rmsg_);

## DESCRIPTION
     These routines are used for describing the RPC messages in XDR language.  They should normally
     be used by those who do not want to use the RPC package directly.  These routines return TRUE
     if they succeed, FALSE otherwise.

## Routines
     See [rpc(3)](https://www.chedong.com/phpMan.php/man/rpc/3/markdown) for the definition of the _XDR_ data structure.

     **xdr**___**accepted**___**reply**()
            Used to translate between RPC reply messages and their external representation.  It in‐
            cludes the status of the RPC call in the XDR language format.  In the case of success,
            it also includes the call results.

     **xdr**___**authsys**___**parms**()
            Used for describing UNIX operating system credentials.  It includes machine-name, uid,
            gid list, etc.

     **xdr**___**callhdr**()
            Used for describing RPC call header messages.  It encodes the static part of the call
            message header in the XDR language format.  It includes information such as transaction
            ID, RPC version number, program and version number.

     **xdr**___**callmsg**()
            Used for describing RPC call messages.  This includes all the RPC call information such
            as transaction ID, RPC version number, program number, version number, authentication
            information, etc.  This is normally used by servers to determine information about the
            client RPC call.

     **xdr**___**opaque**___**auth**()
            Used for describing RPC opaque authentication information messages.

     **xdr**___**rejected**___**reply**()
            Used for describing RPC reply messages.  It encodes the rejected RPC message in the XDR
            language format.  The message could be rejected either because of version number mis-
            match or because of authentication errors.

     **xdr**___**replymsg**()
            Used for describing RPC reply messages.  It translates between the RPC reply message and
            its external representation.  This reply could be either an acceptance, rejection or
            NULL.

## AVAILABILITY
     These functions are part of libtirpc.

## SEE ALSO
     [rpc(3)](https://www.chedong.com/phpMan.php/man/rpc/3/markdown), [xdr(3)](https://www.chedong.com/phpMan.php/man/xdr/3/markdown)

BSD                               May 3, 1993                              BSD
