RPC(3N)

NAME
rpc - library routines for remote procedure calls

SYNOPSIS AND DESCRIPTION

RPC routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a request to the server. Upon receipt of the request, the server calls a dispatch routine to perform the requested service, and then sends back a reply. Finally, the procedure call returns to the client.

All RPC routines require the header <rpc/rpc.h> to be included.

The RPC routines have been grouped by usage on the following man pages.

portmap(3N)
    Library routines for the RPC bind service, portmap(8C). The routines documented on this page include:
    pmap_getmaps()
    pmap_getport()
    pmap_rmtcall()
    pmap_set()
    pmap_unset()
    xdr_pmap()
    xdr_pmaplist()

rpc_clnt_auth(3N)
    Library routines for client side remote procedure call authentication. The routines documented on this page include:
    auth_destroy()
    authnone_create()
    authunix_create()
    authunix_create_default()

rpc_clnt_calls(3N)
    Library routines for client side calls. The routines documented on this page include:
    callrpc()
    clnt_broadcast()
    clnt_call()
    clnt_freeres()
    clnt_geterr()
    clnt_perrno()
    clnt_perror()
    clnt_sperrno()
    clnt_sperror()

rpc_clnt_create(3N)
    Library routines for dealing with the creation and manipulation of CLIENT handles. The routines documented on this page include:
    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(3N)
    Library routines for registerring servers. The routines documented on this page include:
    registerrpc()
    svc_register()
    svc_unregister()
    xprt_register()
    xprt_unregister()

rpc_svc_create(3N)
    Library routines for dealing with the creation of server side handles. The routines documented on this page include:
    svc_destroy()
    svcfd_create()
    svcraw_create()
    svctcp_create()
    svcudp_bufcreate()

rpc_svc_err(3N)
    Library routines for server side remote procedure call errors. The routines documented on this page include:
    svcerr_auth()
    svcerr_decode()
    svcerr_noproc()
    svcerr_noprog()
    svcerr_progvers()
    svcerr_systemerr()
    svcerr_weakauth()

rpc_svc_reg(3N)
    Library routines for RPC servers. The routines documented on this page include:
    svc_fds()
    svc_fdset()
    svc_freeargs()
    svc_getargs()
    svc_getcaller()
    svc_getreq()
    svc_getreqset()
    svc_run()
    svc_sendreply()

rpc_xdr(3N)
    XDR library routines for remote procedure calls. The routines documented on this page include:
    xdr_accepted_reply()
    xdr_authunix_parms()
    xdr_callhdr()
    xdr_callmsg()
    xdr_opaque_auth()
    xdr_rejected_reply()
    xdr_replymsg()

secure_rpc(3N)
    Library routines for secure remote procedure calls. The routines documented on this page include:
    authdes_create()
    authdes_getucred()
    get_mayaddress()
    getnetname()
    host2netname()
    key_decryptsession()
    key_encryptsession()
    key_gendes()
    key_setsecret()
    netname2host()
    netname2user()
    user2netname()

SEE ALSO
portmap(3N), rpc_clnt_auth(3N), rpc_clnt_calls(3N), rpc_clnt_create(3N), rpc_svc_calls(3N), rpc_svc_create(3N), rpc_svc_err(3N), rpc_svc_reg(3N), rpc_xdr(3N), secure_rpc(3N), xdr(3N), publickey(5), portmap(8C), keyserv(8C)