rpc_soc.3n (2010 09)
r
rpc_soc(3N) rpc_soc(3N)
(OBSOLETE)
mapping of the triple [prognum , versnum , protocol ]toxprt
→xp_port is established with the
local
portmap service (generally, protocol is 0
, IPPROTO_UDP,orIPPROTO_TCP). The pro-
cedure dispatch has the following form:
dispatch(struct svc_req *
request , SVCXPRT *xprt);
The svc_register()
routine returns 1 if it succeeds, and 0 otherwise.
Warning: this routine exists for backward compatibility only; enhanced functionality is pro-
vided by
svc_reg() (see rpc_svc_calls(3N)).
void svc_unregister()
Remove all mapping of the double [prognum, versnum ] to dispatch routines, and of the triple
[prognum, versnum, all-protocols] to port number from
portmap.
Warning: this routine exists for backward compatibility, enhanced functionality is provided by
svc_unreg() (see rpc_svc_calls(3N)).
xdr_authunix_parms()
Used for describing UNIX credentials. This routine is useful for users who wish to generate
these credentials without using the RPC authentication package.
Warning: this routine exists for backward compatibility only, and is made obsolete by
xdr_authsys_parms()
(see rpc_xdr (3N)).
MULTITHREAD USAGE
Thread Safe: No
Cancel Safe: No
Async-cancel Safe: No
Async-signal Safe: No
These interfaces are unsafe in multithreaded applications. Unsafe interfaces should be called only from
the main thread.
SEE ALSO
keyserv(1M), rpcbind(1M), rpcinfo(1M), rpc(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),
rpcbind(3N), secure_rpc(3N), select(2).
HP-UX 11i Version 3: September 2010 − 7 − Hewlett-Packard Company 7