Skip Navigation Links | |
Exit Print View | |
ONC+ Developer's Guide Oracle Solaris 11.1 Information Library |
1. Introduction to ONC+ Technologies
4. Programmer's Interface to RPC
5. Advanced RPC Programming Techniques
6. Porting From TS-RPC to TI-RPC
Differences Between TI-RPC and TS-RPC
7. Multithreaded RPC Programming
8. Extensions to the Oracle Solaris RPC Library
This section lists the RPC library functions and groups them into functional areas. Each section includes lists of functions that are unchanged, have added functionality, and are new to this release.
Note - Functions marked with an asterisk are retained for ease of porting.
The following functions are unchanged from the previous releases and are available in the current Oracle Solaris release :
svc_destroy svcfd_create *svc_raw_create *svc_tp_create *svcudp_create *svc_udp_bufcreate svc_create svc_dg_create svc_fd_create svc_raw_create svc_tli_create svc_tp_create svc_vc_create
The following functions are unchanged from the previous releases and are available in the current Oracle Solaris release:
*registerrpc *svc_register *svc_unregister xprt_register xprt_unregister rpc_reg svc_reg svc_unreg
The following functions are unchanged from previous releases and are available in the current Oracle Solaris release:
*callrpc clnt_call *svc_getcaller - works only with IP-based transports rpc_call svc_getrpccaller
The clnt_broadcast call has the same functionality as in previous releases, although it is supported for backward compatibility only.
clnt_broadcast() can broadcast only to the portmap service. It does not support rpcbind.
The rpc_broadcast function broadcasts to both portmap and rpcbind and is also available in the current Oracle Solaris release.
The TI-RPC library functions interface with either portmap or rpcbind. Because the services of the programs differ, there are two sets of functions, one for each service.
The following functions work with portmap:
pmap_set pmap_unset pmap_getport pmap_getmaps pmap_rmtcall
The following functions work with rpcbind:
rpcb_set rpcb_unset rpcb_getaddr rpcb_getmaps rpcb_rmtcall
The following calls have the same functionality as in previous releases. They are supported for backward compatibility only.
authdes_create authunix_create authunix_create_default authdes_seccreate authsys_create authsys_create_default
rpcbind provides a time service, primarily for use by secure RPC client-server time synchronization, available through the rpcb_gettime() function. pmap_getport() and rpcb_getaddr() can be used to get the port number of a registered service. rpcb_getaddr() communicates with any server running version 2, 3, or 4 of rcpbind. pmap_getport() can only communicate with version 2.