rpcbind.3n (2010 09)

r
rpcbind(3N) rpcbind(3N)
NAME
rpcbind: rpcb_getmaps(), rpcb_getaddr(), rpcb_gettime(), rpcb_rmtcall(), rpcb_set(), rpcb_unset() - library
routines for RPC bind service
SYNOPSIS
#include <rpc/rpc.h>
struct rpcblist *rpcb_getmaps(const struct netconfig *
netconf
,
const char *host );
bool_t rpcb_getaddr(const rpcprog_t
prognum,
const rpcvers_t versnum ,
const struct netconfig *netconf ,
struct netbuf *svcaddr ,
const char *host );
bool_t rpcb_gettime(const char *
host ,
time_t *timep );
enum clnt_stat rpcb_rmtcall(const struct netconfig *
netconf ,
const char *host ,
const rpcprog_t prognum,
const rpcvers_t versnum ,
const rpcproc_t procnum,
const xdrproc_t inproc ,
const caddr_t in,
const xdrproc_t outproc ,
caddr_t out,
const struct timeval tout ,
struct netbuf *svcaddr );
bool_t rpcb_set(const rpcprog_t
prognum,
const rpcvers_t
versnum ,
const struct netconfig *netconf ,
const struct netbuf *svcaddr );
bool_t rpcb_unset(const rpcprog_t
prognum,
const rpcvers_t versnum ,
const struct netconfig *netconf );
DESCRIPTION
These routines allow client C programs to make procedure calls to the RPC binder service. rpcbind
(see rpcbind (1M)) maintains a list of mappings between programs and their universal addresses.
Routines
struct rpcblist *rpcb_getmaps()
An interface to the rpcbind service, which returns a list of the current RPC program-to-address
mappings on host. It uses the transport specified through netconf to contact the remote rpcbind
service on host. This routine will return NULL, if the remote rpcbind could not be contacted.
bool_t rpcb_getaddr()
An interface to the rpcbind service, which finds the address of the service on host that is
registered with program number prognum, version versnum , and speaks the transport protocol
associated with netconf . The address found is returned in svcaddr . svcaddr should be preallocated.
This routine returns TRUE if it succeeds. A return value of FALSE means that the mapping does
not exist or that the RPC system failed to contact the remote rpcbind service. In the latter case,
the global variable rpc_createerr (see rpc_clnt_create(3N)) contains the RPC status.
bool_t rpcb_gettime()
This routine returns the time on host in timep .Ifhost is NULL, rpcb_gettime() returns the
time on its own machine. This routine returns TRUE if it succeeds, FALSE if it fails.
rpcb_gettime() can be used to synchronize the time between the client and the remote server.
This routine is particularly useful for secure RPC.
enum clnt_stat rpcb_rmtcall()
An interface to the rpcbind service, which instructs rpcbind on host to make an RPC call on
your behalf to a procedure on that host. The netconfig structure should correspond to a
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)