logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rpc_svc_err, svcerr_auth, svcerr_decode, svcerr_noproc, svcerr_noprog, svcerr_progvers, svcerr_systemerr,

Availability

       These functions are part of libtirpc.

Description

       These  routines  are  part of the RPC library which allows C language programs to make procedure calls on
       other machines across the network.

       These routines can be called by the  server  side  dispatch  function  if  there  is  any  error  in  the
       transaction with the client.

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

Routines

       See rpc(3) for the definition of the SVCXPRT data structure.

       svcerr_auth()
              Called  by  a  service  dispatch routine that refuses to perform a remote procedure call due to an
              authentication error.

       svcerr_decode()
              Called by a service dispatch routine that cannot successfully decode  the  remote  arguments  (see
              svc_getargs() in rpc_svc_reg(3)).

       svcerr_noproc()
              Called  by a service dispatch routine that does not implement the procedure number that the caller
              requests.

       svcerr_noprog()
              Called when the desired program is not registered with  the  RPC  package.   Service  implementors
              usually do not need this routine.

       svcerr_progvers()
              Called when the desired version of a program is not registered with the RPC package.  The low_vers
              argument  is  the  lowest  version  number,  and high_vers is the highest version number.  Service
              implementors usually do not need this routine.

       svcerr_systemerr()
              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.

       svcerr_weakauth()
              Called  by  a  service  dispatch  routine  that  refuses to perform a remote procedure call due to
              insufficient  (but  correct)  authentication  arguments.   The  routine  calls   svcerr_auth(xprt,
              AUTH_TOOWEAK).

See Also

rpc(3), rpc_svc_calls(3), rpc_svc_create(3), rpc_svc_reg(3)

Debian                                             May 3, 1993                                    RPC_SVC_ERR(3)

Synopsis

#include<rpc/rpc.h>voidsvcerr_auth(SVCXPRT*xprt, enumauth_statwhy);

       voidsvcerr_decode(SVCXPRT*xprt);

       voidsvcerr_noproc(SVCXPRT*xprt);

       voidsvcerr_noprog(SVCXPRT*xprt);

       voidsvcerr_progvers(SVCXPRT*xprt, rpcvers_tlow_vers, rpcvers_thigh_vers);

       voidsvcerr_systemerr(SVCXPRT*xprt);

       voidsvcerr_weakauth(SVCXPRT*xprt);

See Also