rpc(3C)
NAME
rpc − library of routines for remote procedure calls
SYNOPSIS
#include <rpc/rpc.h>
DESCRIPTION
With RPC routines, C client programs can make procedure calls on other machines across the network.
RPC routines are requested and dispatched as follows:
1. A C client program calls RPC to request a service on a remote host.
2. Upon receipt of the request, the server dispatches a routine to perform the requested service on the remote host.
3. The server then sends back a reply and the procedure call returns to the client.
Routines
To use the RPC routines, C programs must include the header file, <rpc/rpc.h>.
Several libraries of RPC routines are provided, as documented in the following man pages:
portmap (3C) A library of routines for the RPC binder service, portmap(), including:
pmap_getmaps()
pmap_getport()
pmap_rmtcall()
pmap_set()
pmap_unset()
xdr_pmap()
xdr_pmaplist()
rpc_clnt_auth (3C) A library of routines for client-side authentication of RPC calls, including:
auth_destroy()
authnone_create()
authunix_create()
authunix_create_default()
rpc_clnt_calls (3C) A library of routines for client-side RPC calls, including:
callrpc()
clnt_broadcast()
clnt_call()
clnt_freeres()
clnt_geterr()
clnt_perrno()
clnt_perror()
clnt_sperrno()
clnt_sperror()
rpc_clnt_create (3C) A library of routines for the creation and manipulation of CLIENT handles, including:
clnt_control()
clnt_create()
clnt_create_vers()
clnt_destroy()
clnt_pcreateerror()
clntraw_create()
clnt_spcreateerror()
clnttcp_create()
clntudp_bufcreate()
clntudp_create()
rpc_createrr()
rpc_svc_calls (3C) A library of routines for the registration of servers, including:
registerrpc()
svc_register()
svc_unregister()
xprt_register()
xprt_unregister()
rpc_svc_create (3C) A library of routines for the creation of server-side handles, including:
svc_destroy()
svcfd_create()
svcraw_create()
svctcp_create()
svcudp_bufcreate()
rpc_svc_err (3C) A library of routines for server-side handling of RPC call errors, including:
svcerr_auth()
svcerr_decode()
svcerr_noproc()
svcerr_noprog()
svcerr_progvers()
svcerr_systemerr()
svcerr_weakauth()
rpc_svc_reg (3C) A library of routines for RPC servers, including:
svc_fds()
svc_fdset()
svc_freeargs()
svc_getargs()
svc_getcaller()
svc_getreq()
svc_getreqset()
svc_run()
svc_sendreply()
rpc_xdr (3C) An XDR library of routines for RPC calls, including:
xdr_accepted_reply()
xdr_authunix_parms()
xdr_callhdr()
xdr_callmsg()
xdr_opaque_auth()
xdr_rejected_reply()
xdr_replymsg()
secure_rpc (3C) A library of routines for secure RPC calls, including:
authdes_create()
authdes_getucred()
get_myaddress()
getnetname()
host2netname()
key_decryptsession()
key_encryptsession()
key_gendes()
key_setsecret()
netname2host()
netname2user()
user2netname()
AUTHOR
rpc() was developed by Sun Microsystems, Inc.
SEE ALSO
portmap(1M), keyserv(1M), portmap(3C), rpc_clnt_auth(3C), rpc_clnt_calls(3C), rpc_clnt_create(3C), rpc_svc_calls(3C), rpc_svc_create(3C), rpc_svc_err(3C), rpc_svc_reg(3C), rpc_xdr(3C), secure_rpc(3C), xdr(3C), publickey(4)
Power Programming with RPC.
Hewlett-Packard Company — HP-UX Release 10.20: July 1996