Deleted Added
full compact
rpc_svc_reg.3 (84425) rpc_svc_reg.3 (108087)
1.\" @(#)rpc_svc_reg.3n 1.32 93/08/31 SMI; from SVr4
2.\" Copyright 1989 AT&T
3.\" @(#)rpc_svc_call 1.6 89/07/20 SMI;
4.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
5.\" $NetBSD: rpc_svc_reg.3,v 1.1 2000/06/02 23:11:14 fvdl Exp $
1.\" @(#)rpc_svc_reg.3n 1.32 93/08/31 SMI; from SVr4
2.\" Copyright 1989 AT&T
3.\" @(#)rpc_svc_call 1.6 89/07/20 SMI;
4.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
5.\" $NetBSD: rpc_svc_reg.3,v 1.1 2000/06/02 23:11:14 fvdl Exp $
6.\" $FreeBSD: head/lib/libc/rpc/rpc_svc_reg.3 84425 2001-10-03 16:47:56Z bde $
6.\" $FreeBSD: head/lib/libc/rpc/rpc_svc_reg.3 108087 2002-12-19 09:40:28Z ru $
7.Dd May 3, 1993
8.Dt RPC_SVC_REG 3
9.Os
10.Sh NAME
11.Nm rpc_svc_reg ,
12.Nm rpc_reg ,
13.Nm svc_reg ,
14.Nm svc_unreg ,

--- 45 unchanged lines hidden (view full) ---

60service package.
61If a request arrives for program
62.Fa prognum ,
63version
64.Fa versnum ,
65and procedure
66.Fa procnum ,
67.Fa procname
7.Dd May 3, 1993
8.Dt RPC_SVC_REG 3
9.Os
10.Sh NAME
11.Nm rpc_svc_reg ,
12.Nm rpc_reg ,
13.Nm svc_reg ,
14.Nm svc_unreg ,

--- 45 unchanged lines hidden (view full) ---

60service package.
61If a request arrives for program
62.Fa prognum ,
63version
64.Fa versnum ,
65and procedure
66.Fa procnum ,
67.Fa procname
68is called with a pointer to its parameter(s);
68is called with a pointer to its argument(s);
69.Fa procname
70should return a pointer to its static result(s);
71.Fa inproc
69.Fa procname
70should return a pointer to its static result(s);
71.Fa inproc
72is the XDR function used to decode the parameters while
72is the XDR function used to decode the arguments while
73.Fa outproc
74is the XDR function used to encode the results.
75Procedures are registered on all available transports of the class
76.Fa nettype .
77See
78.Xr rpc 3 .
79This routine returns 0 if the registration succeeded,
80\-1 otherwise.

--- 49 unchanged lines hidden (view full) ---

130Typical service application would call
131.Fn svc_auth_reg
132after registering the service and prior to calling
133.Fn svc_run .
134When needed to process an RPC credential of type
135.Fa cred_flavor ,
136the
137.Fa handler
73.Fa outproc
74is the XDR function used to encode the results.
75Procedures are registered on all available transports of the class
76.Fa nettype .
77See
78.Xr rpc 3 .
79This routine returns 0 if the registration succeeded,
80\-1 otherwise.

--- 49 unchanged lines hidden (view full) ---

130Typical service application would call
131.Fn svc_auth_reg
132after registering the service and prior to calling
133.Fn svc_run .
134When needed to process an RPC credential of type
135.Fa cred_flavor ,
136the
137.Fa handler
138procedure will be called with two parameters,
138procedure will be called with two arguments,
139.Fa "struct svc_req *rqst"
140and
141.Fa "struct rpc_msg *msg" ,
142and is expected to return a valid
143.Vt "enum auth_stat"
144value.
145There is no provision to change or delete an authentication handler
146once registered.

--- 37 unchanged lines hidden ---
139.Fa "struct svc_req *rqst"
140and
141.Fa "struct rpc_msg *msg" ,
142and is expected to return a valid
143.Vt "enum auth_stat"
144value.
145There is no provision to change or delete an authentication handler
146once registered.

--- 37 unchanged lines hidden ---