1RPC_SVC_ERR(3) BSD Library Functions Manual RPC_SVC_ERR(3)
2
4 rpc_svc_err, svcerr_auth, svcerr_decode, svcerr_noproc, svcerr_noprog,
5 svcerr_progvers, svcerr_systemerr, svcerr_weakauth — library routines for
6 server side remote procedure call errors
7
9 #include <rpc/rpc.h>
10
11 void
12 svcerr_auth(SVCXPRT *xprt, enum auth_stat why);
13
14 void
15 svcerr_decode(SVCXPRT *xprt);
16
17 void
18 svcerr_noproc(SVCXPRT *xprt);
19
20 void
21 svcerr_noprog(SVCXPRT *xprt);
22
23 void
24 svcerr_progvers(SVCXPRT *xprt, rpcvers_t low_vers, rpcvers_t high_vers);
25
26 void
27 svcerr_systemerr(SVCXPRT *xprt);
28
29 void
30 svcerr_weakauth(SVCXPRT *xprt);
31
33 These routines are part of the RPC library which allows C language pro‐
34 grams to make procedure calls on other machines across the network.
35
36 These routines can be called by the server side dispatch function if
37 there is any error in the transaction with the client.
38
40 See rpc(3) for the definition of the SVCXPRT data structure.
41
42 svcerr_auth()
43 Called by a service dispatch routine that refuses to perform a
44 remote procedure call due to an authentication error.
45
46 svcerr_decode()
47 Called by a service dispatch routine that cannot successfully
48 decode the remote arguments (see svc_getargs() in rpc_svc_reg(3)).
49
50 svcerr_noproc()
51 Called by a service dispatch routine that does not implement the
52 procedure number that the caller requests.
53
54 svcerr_noprog()
55 Called when the desired program is not registered with the RPC
56 package. Service implementors usually do not need this routine.
57
58 svcerr_progvers()
59 Called when the desired version of a program is not registered
60 with the RPC package. The low_vers argument is the lowest version
61 number, and high_vers is the highest version number. Service
62 implementors usually do not need this routine.
63
64 svcerr_systemerr()
65 Called by a service dispatch routine when it detects a system
66 error not covered by any particular protocol. For example, if a
67 service can no longer allocate storage, it may call this routine.
68
69 svcerr_weakauth()
70 Called by a service dispatch routine that refuses to perform a
71 remote procedure call due to insufficient (but correct) authenti‐
72 cation arguments. The routine calls svcerr_auth(xprt,
73 AUTH_TOOWEAK).
74
76 These functions are part of libtirpc.
77
79 rpc(3), rpc_svc_calls(3), rpc_svc_create(3), rpc_svc_reg(3)
80
81BSD May 3, 1993 BSD