1 .\" @(#)rpcbind.3n 1.25 93/05/07 SMI; from SVr4
2 .\" Copyright 1989 AT&T
3 .\" Copyright (c) 1988 Sun Microsystem's, Inc. - All Right's Reserved.
4 .\" $NetBSD: rpcbind.3,v 1.2 2000/06/03 18:47:28 fvdl Exp $
5 .\" $FreeBSD: src/lib/libc/rpc/rpcbind.3,v 1.6 2005/02/09 18:03:14 ru Exp $
16 .Nd library routines for RPC bind service
22 .Fn rpcb_getmaps "const struct netconfig *netconf" "const char *host"
24 .Fn rpcb_getaddr "const rpcprog_t prognum" "const rpcvers_t versnum" "const struct netconfig *netconf" "struct netbuf *svcaddr" "const char *host"
26 .Fn rpcb_gettime "const char *host" "time_t * timep"
28 .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 caddr_t in" "const xdrproc_t outproc" "const caddr_t out" "const struct timeval tout, const struct netbuf *svcaddr"
30 .Fn rpcb_set "const rpcprog_t prognum" "const rpcvers_t versnum" "const struct netconfig *netconf" "const struct netbuf *svcaddr"
32 .Fn rpcb_unset "const rpcprog_t prognum" "const rpcvers_t versnum" "const struct netconfig *netconf"
34 These routines allow client C programs to make procedure
35 calls to the RPC binder service.
38 maintains a list of mappings between programs
39 and their universal addresses.
43 An interface to the rpcbind service,
44 which returns a list of the current
45 RPC program-to-address mappings on
47 It uses the transport specified through
49 to contact the remote rpcbind
52 This routine will return
54 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
70 should be preallocated.
76 means that the mapping does not exist
78 system failed to contact the remote
80 In the latter case, the global variable
83 .Xr rpc_clnt_create 3 )
87 This routine returns the time on
96 returns the time on its own machine.
105 can be used to synchronize the time between the
106 client and the remote server.
108 An interface to the rpcbind service, which instructs
112 call on your behalf to a procedure on that host.
115 structure should correspond to a connectionless transport.
119 will be modified to the server's address if the procedure succeeds
126 for the definitions of other arguments).
128 This procedure should normally be used for a
131 This routine allows programs to do lookup and call, all in one step.
133 Note: Even if the server is not running
135 does not return any error messages to the caller.
136 In such a case, the caller times out.
140 is only available for connectionless transports.
142 An interface to the rpcbind
143 service, which establishes a mapping between the triple
144 .Bq Fa prognum , versnum , netconf->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,
166 An interface to the rpcbind
167 service, which destroys the mapping between the triple
168 .Bq Fa prognum , versnum , netconf->nc_netid
169 and the address on the machine's rpcbind
176 destroys all mapping between the triple
177 .Bq Fa prognum , versnum , No all-transports
178 and the addresses on the machine's rpcbind service.
184 Only the owner of the service or the super-user can destroy the mapping.
188 .Xr rpc_svc_calls 3 . )
191 .Xr rpc_clnt_calls 3 ,
192 .Xr rpc_svc_calls 3 ,