Format
#include <rpc.h>
enum clnt_stat
clnt_call(clnt, procnum,
inproc, in, outproc, out, tout)
CLIENT *clnt;
u_long procnum;
xdrproc_t inproc;
char *in;
xdrproc_t outproc;
char *out;
struct timeval tout;
Parameters
- clnt
- Specifies
the pointer to a client handle that was previously obtained using
clntraw_create(), clnttcp_create(), or clntudp_create().
- procnum
- Identifies
the remote procedure number.
- inproc
- Specifies
the XDR procedure used to encode procnum arguments.
- in
- Specifies
a pointer to the arguments of the remote procedure.
- outproc
- Indicates
the XDR procedure used to decode the remote procedure results.
- out
- Specifies
a pointer to the results of the remote procedure.
- tout
- Indicates
the time allowed for the server to respond.
Usage
The clnt_call() calls the remote
procedure (procnum) associated with the
client handle (clnt).
Return codes
A value of RPC_SUCCESS (0)
indicates success; otherwise, an error has occurred as indicated by
the value returned. The results of the remote procedure call are returned
in out.
Context
- callrpc()
- clnt_broadcast()
- clnt_geterr()
- clnt_perror()
- clnt_sperror()
- clntraw_create()
- clnttcp_create()
- clntudp_create()