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 $
17 .Nd library routines for RPC bind service
23 .Fn rpcb_getmaps "const struct netconfig *netconf" "const char *host"
25 .Fn rpcb_getaddr "const rpcprog_t prognum" "const rpcvers_t versnum" "const struct netconfig *netconf" "struct netbuf *svcaddr" "const char *host"
27 .Fn rpcb_gettime "const char *host" "time_t * timep"
29 .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"
31 .Fn rpcb_set "const rpcprog_t prognum" "const rpcvers_t versnum" "const struct netconfig *netconf" "const struct netbuf *svcaddr"
33 .Fn rpcb_unset "const rpcprog_t prognum" "const rpcvers_t versnum" "const struct netconfig *netconf"
35 These routines allow client C programs to make procedure
36 calls to the RPC binder service.
39 maintains a list of mappings between programs
40 and their universal addresses.
44 An interface to the rpcbind service,
45 which returns a list of the current
46 RPC program-to-address mappings on
48 It uses the transport specified through
50 to contact the remote rpcbind
53 This routine will return
55 if the remote rpcbind could not be contacted.
57 An interface to the rpcbind
58 service, which finds the address of the service on
60 that is registered with program number
64 and speaks the transport protocol associated with
66 The address found is returned in
71 should be preallocated.
77 means that the mapping does not exist
79 system failed to contact the remote
81 In the latter case, the global variable
84 .Xr rpc_clnt_create 3 )
88 This routine returns the time on
97 returns the time on its own machine.
106 can be used to synchronize the time between the
107 client and the remote server.
109 An interface to the rpcbind service, which instructs
113 call on your behalf to a procedure on that host.
116 structure should correspond to a connectionless transport.
120 will be modified to the server's address if the procedure succeeds
127 for the definitions of other arguments).
129 This procedure should normally be used for a
132 This routine allows programs to do lookup and call, all in one step.
134 Note: Even if the server is not running
136 does not return any error messages to the caller.
137 In such a case, the caller times out.
141 is only available for connectionless transports.
143 An interface to the rpcbind
144 service, which establishes a mapping between the triple
145 .Bq Fa prognum , versnum , netconf->nc_netid
148 on the machine's rpcbind
152 must correspond to a network identifier that is defined by the
162 .Xr rpc_svc_calls 3 . )
163 If there already exists such an entry with rpcbind,
167 An interface to the rpcbind
168 service, which destroys the mapping between the triple
169 .Bq Fa prognum , versnum , netconf->nc_netid
170 and the address on the machine's rpcbind
177 destroys all mapping between the triple
178 .Bq Fa prognum , versnum , No all-transports
179 and the addresses on the machine's rpcbind service.
185 Only the owner of the service or the super-user can destroy the mapping.
189 .Xr rpc_svc_calls 3 . )
192 .Xr rpc_clnt_calls 3 ,
193 .Xr rpc_svc_calls 3 ,