Format
#include <rpc.h>
#include <pmap_pro.h>
#include <pmap_cln.h>
enum clnt_stat
pmap_rmtcall(addr, prognum,
versnum, procnum, inproc, in, outproc, out, tout, portp)
struct sockaddr_in *addr;
u_long prognum;
u_long versnum;
u_long procnum;
xdrproc_t inproc;
char *in;
xdrproc_t outproc;
char *out;
struct timeval tout;
u_long *portp;
Parameters
- addr
- Indicates
the pointer to the Internet address of the foreign host.
- prognum
- Specifies
the remote program number.
- versnum
- Specifies
the version number of the remote program.
- procnum
- Identifies
the procedure to be called.
- inproc
- Specifies
the XDR procedure used to encode the arguments of the remote procedure.
- in
- Specifies
the pointer to the arguments of the remote procedure.
- outproc
- Specifies
the XDR procedure used to decode the results of the remote procedure.
- out
- Indicates
the pointer to the results of the remote procedure.
- tout
- Specifies the timeout period for the remote request.
- portp
- If
the call from the remote portmap service is successful, portp contains
the port number of the triple (prognum, versnum, procnum).
Usage
The pmap_rmtcall() call instructs
portmapper, on the host at addr, to make
an RPC call to a procedure on that host. This procedure should be
used only for ping-type functions.
Return codes
clnt_stat enumerated type.
Context
- getrpcport()
- pmap_getmaps()
- pmap_getport()
- pmap_set()
- pmap_unset()