# phpman > man > rpc_svc_err(3)

[RPC_SVC_ERR(3)](https://www.chedong.com/phpMan.php/man/RPCSVCERR/3/markdown)           BSD Library Functions Manual           [RPC_SVC_ERR(3)](https://www.chedong.com/phpMan.php/man/RPCSVCERR/3/markdown)

## 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 er‐
     rors

## SYNOPSIS
### #include <rpc/rpc.h>

     _void_
     **svcerr**___**auth**(_SVCXPRT_ _*xprt_, _enum_ _auth_stat_ _why_);

     _void_
     **svcerr**___**decode**(_SVCXPRT_ _*xprt_);

     _void_
     **svcerr**___**noproc**(_SVCXPRT_ _*xprt_);

     _void_
     **svcerr**___**noprog**(_SVCXPRT_ _*xprt_);

     _void_
     **svcerr**___**progvers**(_SVCXPRT_ _*xprt_, _rpcvers_t_ _low_vers_, _rpcvers_t_ _high_vers_);

     _void_
     **svcerr**___**systemerr**(_SVCXPRT_ _*xprt_);

     _void_
     **svcerr**___**weakauth**(_SVCXPRT_ _*xprt_);

## 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.

## Routines
     See [rpc(3)](https://www.chedong.com/phpMan.php/man/rpc/3/markdown) 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 argu‐
            ments (see **svc**___**getargs**() in [rpc_svc_reg(3)](https://www.chedong.com/phpMan.php/man/rpcsvcreg/3/markdown)).

     **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 imple‐
            mentors 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_).

## AVAILABILITY
     These functions are part of libtirpc.

## SEE ALSO
     [rpc(3)](https://www.chedong.com/phpMan.php/man/rpc/3/markdown), [rpc_svc_calls(3)](https://www.chedong.com/phpMan.php/man/rpcsvccalls/3/markdown), [rpc_svc_create(3)](https://www.chedong.com/phpMan.php/man/rpcsvccreate/3/markdown), [rpc_svc_reg(3)](https://www.chedong.com/phpMan.php/man/rpcsvcreg/3/markdown)

BSD                               May 3, 1993                              BSD
