1 .\" @(#)rpcbind.3n 1.25 93/05/07 SMI; from SVr4
2 .\" Copyright 1989 AT&T
3 .\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
4 .\" $NetBSD: rpcbind.3,v 1.11 2009/04/11 16:07:20 joerg Exp $
15 .Nd library routines for RPC bind service
20 .Ft "struct rpcblist *"
21 .Fn rpcb_getmaps "const struct netconfig *netconf" "const char *host"
23 .Fn rpcb_getaddr "const rpcprog_t prognum" "const rpcvers_t versnum" "const struct netconfig *netconf" "struct netbuf *svcaddr" "const char *host"
25 .Fn rpcb_gettime "const char *host" "time_t * timep"
27 .Fn 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 char *in" "const xdrproc_t outproc" "caddr_t out" "const struct timeval tout, struct netbuf *svcaddr"
29 .Fn rpcb_set "const rpcprog_t prognum" "const rpcvers_t versnum" "const struct netconfig *netconf" "const struct netbuf *svcaddr"
31 .Fn rpcb_unset "const rpcprog_t prognum" "const rpcvers_t versnum" "const struct netconfig *netconf"
33 These routines allow client C programs to make procedure
34 calls to the RPC binder service.
37 maintains a list of mappings between programs
38 and their universal addresses.
42 An interface to the rpcbind service,
43 which returns a list of the current
44 RPC program-to-address mappings on
46 It uses the transport specified through
48 to contact the remote rpcbind
51 This routine will return
53 if the remote rpcbind could not be contacted.
56 An interface to the rpcbind
57 service, which finds the address of the service on
59 that is registered with program number
63 and speaks the transport protocol associated with
65 The address found is returned in
68 should be preallocated.
74 means that the mapping does not exist
76 system failed to contact the remote
78 In the latter case, the global variable
86 This routine returns the time on
95 returns the time on its own machine.
102 can be used to synchronize the time between the
103 client and the remote server.
106 An interface to the rpcbind service, which instructs
110 call on your behalf to a procedure on that host.
113 structure should correspond to a connectionless transport.
116 will be modified to the server's address if the procedure succeeds
123 for the definitions of other parameters).
125 This procedure should normally be used for a
126 ``ping'' and nothing else.
127 This routine allows programs to do lookup and call, all in one step.
129 Note: Even if the server is not running
131 does not return any error messages to the caller.
132 In such a case, the caller times out.
136 is only available for connectionless transports.
139 An interface to the rpcbind
140 service, which establishes a mapping between the triple
144 .Fa netconf-\*[Gt]nc_netid ]
147 on the machine's rpcbind
151 must correspond to a network identifier that is defined by the
161 .Xr rpc_svc_calls 3 .
162 If there already exists such an entry with rpcbind,
167 An interface to the rpcbind
168 service, which destroys the mapping between the triple
172 .Fa netconf-\*[Gt]nc_netid ]
173 and the address on the machine's rpcbind
180 destroys all mapping between the triple
185 and the addresses on the machine's rpcbind service.
191 Only the owner of the service or the super-user can destroy the mapping.
195 .Xr rpc_svc_calls 3 .
198 .Xr rpc_clnt_calls 3 ,
199 .Xr rpc_svc_calls 3 ,