Format
#include <rpc.h>
void
clnt_perror(clnt, s)
CLIENT *clnt;
char *s;
Parameters
- clnt
- Specifies
the pointer to a client handle that was previously obtained using
clnt_create(), clntudp_create(), clnttcp_create(), or clntraw_create().
- s
- Indicates
a null or null-terminated character string. If s is
nonnull, clnt_perrorerror() prints the string s followed
by a colon, followed by a space, followed by the error message, and
terminated with a new line. If s is null
or points to a null string, just the error message and the new line
are output.
Usage
The clnt_perror() call writes a message
to the standard error device, indicating why an RPC failed. This procedure
should be used after clnt_call() if there is an error.
Context
- clnt_call()
- clnt_create()
- clnt_geterr()
- clnt_pcreateerror()
- clnt_perrno()
- clnt_spcreateerror()
- clnt_sperrno()
- clnt_sperror()
- clntraw_create()
- clnttcp_create()
- clntudp_create()