rpc_xdr(3)
NAME
- xdr_accepted_reply, xdr_authsys_parms, xdr_callhdr,
- xdr_callmsg,
xdr_opaque_auth, xdr_rejected_reply, xdr_replymsg - XDR li - brary routines
for remote procedure calls
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <rpc/rpc.h> boolt_ xdr_accepted_reply(XDR *xdrs, struct acceptedr_eply *ar); boolt_ xdr_authsys_parms(XDR *xdrs, struct authsysp_arms *aupp); boolt_ xdr_callhdr(XDR *xdrs, struct rpcm_sg *chdr); boolt_ xdr_callmsg(XDR *xdrs, struct rpcm_sg *cmsg); boolt_ xdr_opaque_auth(XDR *xdrs, struct opaquea_uth *ap); boolt_ xdr_rejected_reply(XDR *xdrs, struct rejectedr_eply *rr); boolt_ xdr_replymsg(XDR *xdrs, struct rpcm_sg *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 suc - ceed, FALSE otherwise.
Routines
See rpc(3) for the definition of the XDR data structure.
- xdr_accepted_reply()
- Used to translate between RPC reply messages and
- their external
representation. It includes the status of the RPC - call in the XDR
language format. In the case of success, it also in - cludes the
call results. - xdr_authsys_parms()
- Used for describing UNIX operating system creden
- tials. It
includes machine-name, uid, gid list, etc. - xdr_callhdr()
- Used for describing RPC call header messages. It en
- codes 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 informa
- tion, etc.
This is normally used by servers to determine infor - mation about
the client RPC call. - xdr_opaque_auth()
- Used for describing RPC opaque authentication infor
- mation 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 trans
- lates between the
RPC reply message and its external representation. - This reply
could be either an acceptance, rejection or NULL.