1rpc_xdr(3NSL) Networking Services Library Functions rpc_xdr(3NSL)
2
3
4
6 rpc_xdr, xdr_accepted_reply, xdr_authsys_parms, xdr_callhdr,
7 xdr_callmsg, xdr_opaque_auth, xdr_rejected_reply, xdr_replymsg - XDR
8 library routines for remote procedure calls
9
11 bool_t xdr_accepted_reply(XDR *xdrs, const struct accepted_reply *ar);
12
13
14 bool_t xdr_authsys_parms(XDR *xdrs, struct authsys_parms *aupp);
15
16
17 void xdr_callhdr(XDR *xdrs, struct rpc_msg *chdr);
18
19
20 bool_t xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg);
21
22
23 bool_t xdr_opaque_auth(XDR *xdrs, struct opaque_auth *ap);
24
25
26 bool_t xdr_rejected_reply(XDR *xdrs, const struct rejected_reply *rr);
27
28
29 bool_t xdr_replymsg(XDR *xdrs, const struct rpc_msg *rmsg);
30
31
33 These routines are used for describing the RPC messages in XDR lan‐
34 guage. They should normally be used by those who do not want to use the
35 RPC package directly. These routines return TRUE if they succeed, FALSE
36 otherwise.
37
38 Routines
39 See rpc(3NSL) for the definition of the XDR data structure.
40
41 #include <rpc/rpc.h>
42
43
44
45 xdr_accepted_reply() Used to translate between RPC reply messages
46 and their external representation. It includes
47 the status of the RPC call in the XDR language
48 format. In the case of success, it also
49 includes the call results.
50
51
52 xdr_authsys_parms() Used for describing UNIX operating system cre‐
53 dentials. It includes machine-name, uid, gid
54 list, etc.
55
56
57 xdr_callhdr() Used for describing RPC call header messages.
58 It encodes the static part of the call message
59 header in the XDR language format. It includes
60 information such as transaction ID, RPC version
61 number, program and version number.
62
63
64 xdr_callmsg() Used for describing RPC call messages. This
65 includes all the RPC call information such as
66 transaction ID, RPC version number, program
67 number, version number, authentication informa‐
68 tion, etc. This is normally used by servers to
69 determine information about the client RPC
70 call.
71
72
73 xdr_opaque_auth() Used for describing RPC opaque authentication
74 information messages.
75
76
77 xdr_rejected_reply() Used for describing RPC reply messages. It
78 encodes the rejected RPC message in the XDR
79 language format. The message could be rejected
80 either because of version number mis-match or
81 because of authentication errors.
82
83
84 xdr_replymsg() Used for describing RPC reply messages. It
85 translates between the RPC reply message and
86 its external representation. This reply could
87 be either an acceptance, rejection or NULL.
88
89
91 See attributes(5) for descriptions of the following attributes:
92
93
94
95
96 ┌─────────────────────────────┬─────────────────────────────┐
97 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
98 ├─────────────────────────────┼─────────────────────────────┤
99 │MT-Level │Safe │
100 └─────────────────────────────┴─────────────────────────────┘
101
103 rpc(3NSL), xdr(3NSL), attributes(5)
104
105
106
107SunOS 5.11 30 Dec 1996 rpc_xdr(3NSL)