Deleted Added
full compact
rpc_svc_create.3 (84425) rpc_svc_create.3 (108037)
1.\" @(#)rpc_svc_create.3n 1.26 93/08/26 SMI; from SVr4
2.\" Copyright 1989 AT&T
3.\" @(#)rpc_svc_create 1.3 89/06/28 SMI;
4.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
1.\" @(#)rpc_svc_create.3n 1.26 93/08/26 SMI; from SVr4
2.\" Copyright 1989 AT&T
3.\" @(#)rpc_svc_create 1.3 89/06/28 SMI;
4.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
5.\" $FreeBSD: head/lib/libc/rpc/rpc_svc_create.3 84425 2001-10-03 16:47:56Z bde $
5.\" $FreeBSD: head/lib/libc/rpc/rpc_svc_create.3 108037 2002-12-18 12:45:11Z ru $
6.Dd May 3, 1993
7.Dt RPC_SVC_CREATE 3
8.Os
9.Sh NAME
10.Nm rpc_svc_create ,
11.Nm svc_control ,
12.Nm svc_create ,
13.Nm svc_destroy ,

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

103pointer to an integer which is either 0
104(indicating normal server behavior - an
105.Dv RPC_PROGVERSMISMATCH
106error will be returned),
107or 1 (indicating that the out of range request
108should be silently ignored).
109.El
110.It Fn svc_create
6.Dd May 3, 1993
7.Dt RPC_SVC_CREATE 3
8.Os
9.Sh NAME
10.Nm rpc_svc_create ,
11.Nm svc_control ,
12.Nm svc_create ,
13.Nm svc_destroy ,

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

103pointer to an integer which is either 0
104(indicating normal server behavior - an
105.Dv RPC_PROGVERSMISMATCH
106error will be returned),
107or 1 (indicating that the out of range request
108should be silently ignored).
109.El
110.It Fn svc_create
111The
111.Fn svc_create
112.Fn svc_create
113function
112creates server handles for all the transports
113belonging to the class
114.Fa nettype .
115.Fa nettype
116defines a class of transports which can be used
117for a particular application.
118The transports are tried in left to right order in
119.Ev NETPATH
120variable or in top to bottom order in the netconfig database.
121If
122.Fa nettype
123is
124.Dv NULL ,
125it defaults to
126.Qq netpath .
127.Pp
114creates server handles for all the transports
115belonging to the class
116.Fa nettype .
117.Fa nettype
118defines a class of transports which can be used
119for a particular application.
120The transports are tried in left to right order in
121.Ev NETPATH
122variable or in top to bottom order in the netconfig database.
123If
124.Fa nettype
125is
126.Dv NULL ,
127it defaults to
128.Qq netpath .
129.Pp
130The
128.Fn svc_create
131.Fn svc_create
132function
129registers itself with the rpcbind
130service (see
131.Xr rpcbind 8 ) .
132.Fa dispatch
133is called when there is a remote procedure call for the given
134.Fa prognum
135and
136.Fa versnum ;

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

261This routine returns
262.Dv NULL
263if it fails,
264and an error message is logged.
265The server is not registered with the
266.Xr rpcbind 8
267service.
268.It Fn svc_tp_create
133registers itself with the rpcbind
134service (see
135.Xr rpcbind 8 ) .
136.Fa dispatch
137is called when there is a remote procedure call for the given
138.Fa prognum
139and
140.Fa versnum ;

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

265This routine returns
266.Dv NULL
267if it fails,
268and an error message is logged.
269The server is not registered with the
270.Xr rpcbind 8
271service.
272.It Fn svc_tp_create
273The
269.Fn svc_tp_create
274.Fn svc_tp_create
275function
270creates a server handle for the network
271specified by
272.Fa netconf ,
273and registers itself with the rpcbind service.
274.Fa dispatch
275is called when there is a remote procedure call
276for the given
277.Fa prognum
278and
279.Fa versnum ;
280this requires calling
281.Fn svc_run .
276creates a server handle for the network
277specified by
278.Fa netconf ,
279and registers itself with the rpcbind service.
280.Fa dispatch
281is called when there is a remote procedure call
282for the given
283.Fa prognum
284and
285.Fa versnum ;
286this requires calling
287.Fn svc_run .
288The
282.Fn svc_tp_create
289.Fn svc_tp_create
290function
283returns the service handle if it succeeds,
284otherwise a
285.Dv NULL
286is returned and an error message is logged.
287.It Fn svc_vc_create
288This routine creates a connection-oriented RPC
289service and returns a pointer to it.
290This routine returns

--- 21 unchanged lines hidden ---
291returns the service handle if it succeeds,
292otherwise a
293.Dv NULL
294is returned and an error message is logged.
295.It Fn svc_vc_create
296This routine creates a connection-oriented RPC
297service and returns a pointer to it.
298This routine returns

--- 21 unchanged lines hidden ---