'\" te .\" Copyright 1989 AT&T Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved. .TH rpc_svc_err 3NSL "20 Feb 1998" "SunOS 5.11" "Networking Services Library Functions" .SH NAME rpc_svc_err, svcerr_auth, svcerr_decode, svcerr_noproc, svcerr_noprog, svcerr_progvers, svcerr_systemerr, svcerr_weakauth \- library routines for server side remote procedure call errors .SH DESCRIPTION .sp .LP These routines are part of the \fBRPC\fR library which allows C language programs to make procedure calls on other machines across the network. .sp .LP These routines can be called by the server side dispatch function if there is any error in the transaction with the client. .SS "Routines" .sp .LP See \fBrpc\fR(3NSL) for the definition of the \fBSVCXPRT\fR data structure. .sp .in +2 .nf \fB#include \fR .fi .in -2 .sp .sp .ne 2 .mk .na \fBvoid svcerr_auth(const SVCXPRT *\fIxprt\fR, const enum auth_stat \fIwhy\fR);\fR .ad .sp .6 .RS 4n Called by a service dispatch routine that refuses to perform a remote procedure call due to an authentication error. .RE .sp .ne 2 .mk .na \fBvoid svcerr_decode(const SVCXPRT *\fIxprt\fR);\fR .ad .sp .6 .RS 4n Called by a service dispatch routine that cannot successfully decode the remote parameters (see \fBsvc_getargs()\fR in \fBrpc_svc_reg\fR(3NSL)). .RE .sp .ne 2 .mk .na \fBvoid svcerr_noproc(const SVCXPRT *\fIxprt\fR);\fR .ad .sp .6 .RS 4n Called by a service dispatch routine that does not implement the procedure number that the caller requests. .RE .sp .ne 2 .mk .na \fBvoid svcerr_noprog(const SVCXPRT *\fIxprt\fR);\fR .ad .sp .6 .RS 4n Called when the desired program is not registered with the \fBRPC\fR package. Service implementors usually do not need this routine. .RE .sp .ne 2 .mk .na \fBvoid svcerr_progvers(const SVCXPRT *\fIxprt\fR, const rpcvers_t \fIlow_vers\fR, const rpcvers_t \fIhigh_vers\fR);\fR .ad .sp .6 .RS 4n Called when the desired version of a program is not registered with the \fBRPC\fR package. \fIlow_vers\fR is the lowest version number, and \fIhigh_vers\fR is the highest version number. Service implementors usually do not need this routine. .RE .sp .ne 2 .mk .na \fBvoid svcerr_systemerr(const SVCXPRT *\fIxprt\fR);\fR .ad .sp .6 .RS 4n Called by a service dispatch routine when it detects a system error not covered by any particular protocol. For example, if a service can no longer allocate storage, it may call this routine. .RE .sp .ne 2 .mk .na \fBvoid svcerr_weakauth(const SVCXPRT *\fIxprt\fR);\fR .ad .sp .6 .RS 4n Called by a service dispatch routine that refuses to perform a remote procedure call due to insufficient (but correct) authentication parameters. The routine calls \fBsvcerr_auth(xprt, AUTH_TOOWEAK)\fR. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ MT-LevelMT-Safe .TE .SH SEE ALSO .sp .LP \fBrpc\fR(3NSL), \fBrpc_svc_calls\fR(3NSL), \fBrpc_svc_create\fR(3NSL), \fBrpc_svc_reg\fR(3NSL), \fBattributes\fR(5)