1RPC_XDR(3) BSD Library Functions Manual RPC_XDR(3)
2
4 xdr_accepted_reply, xdr_authsys_parms, xdr_callhdr, xdr_callmsg,
5 xdr_opaque_auth, xdr_rejected_reply, xdr_replymsg — XDR library routines
6 for remote procedure calls
7
9 #include <rpc/rpc.h>
10
11 bool_t
12 xdr_accepted_reply(XDR *xdrs, struct accepted_reply *ar);
13
14 bool_t
15 xdr_authsys_parms(XDR *xdrs, struct authsys_parms *aupp);
16
17 bool_t
18 xdr_callhdr(XDR *xdrs, struct rpc_msg *chdr);
19
20 bool_t
21 xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg);
22
23 bool_t
24 xdr_opaque_auth(XDR *xdrs, struct opaque_auth *ap);
25
26 bool_t
27 xdr_rejected_reply(XDR *xdrs, struct rejected_reply *rr);
28
29 bool_t
30 xdr_replymsg(XDR *xdrs, struct rpc_msg *rmsg);
31
33 These routines are used for describing the RPC messages in XDR language.
34 They should normally be used by those who do not want to use the RPC
35 package directly. These routines return TRUE if they succeed, FALSE oth‐
36 erwise.
37
39 See rpc(3) for the definition of the XDR data structure.
40
41 xdr_accepted_reply()
42 Used to translate between RPC reply messages and their external
43 representation. It includes the status of the RPC call in the XDR
44 language format. In the case of success, it also includes the
45 call results.
46
47 xdr_authsys_parms()
48 Used for describing UNIX operating system credentials. It
49 includes machine-name, uid, gid list, etc.
50
51 xdr_callhdr()
52 Used for describing RPC call header messages. It encodes the
53 static part of the call message header in the XDR language format.
54 It includes information such as transaction ID, RPC version num‐
55 ber, program and version number.
56
57 xdr_callmsg()
58 Used for describing RPC call messages. This includes all the RPC
59 call information such as transaction ID, RPC version number, pro‐
60 gram number, version number, authentication information, etc.
61 This is normally used by servers to determine information about
62 the client RPC call.
63
64 xdr_opaque_auth()
65 Used for describing RPC opaque authentication information mes‐
66 sages.
67
68 xdr_rejected_reply()
69 Used for describing RPC reply messages. It encodes the rejected
70 RPC message in the XDR language format. The message could be
71 rejected either because of version number mis-match or because of
72 authentication errors.
73
74 xdr_replymsg()
75 Used for describing RPC reply messages. It translates between the
76 RPC reply message and its external representation. This reply
77 could be either an acceptance, rejection or NULL.
78
80 These functions are part of libtirpc.
81
83 rpc(3), xdr(3)
84
85BSD May 3, 1993 BSD