version 1.8, 2000/11/10 05:10:39 |
version 1.9, 2001/12/05 09:50:31 |
|
|
.Nd RPC protocol compiler |
.Nd RPC protocol compiler |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm rpcgen |
.Nm rpcgen |
.Ar infile |
.Op Fl aALTNbC |
.Nm rpcgen |
.Op Fl D Op Ar name Ns Op =value |
.Op Fl D Op Ar name=value |
|
.Op Fl A |
|
.Op Fl M |
|
.Op Fl T |
|
.Op Fl K Ar secs |
.Op Fl K Ar secs |
|
.Op Fl i Ar lines |
.Ar infile |
.Ar infile |
.Nm rpcgen |
.Nm rpcgen |
.Fl c Li | |
.Fl c Li | |
|
|
.Ar nettype |
.Ar nettype |
.Op Fl o Ar outfile |
.Op Fl o Ar outfile |
.Op Ar infile |
.Op Ar infile |
.Nm rpcgen |
|
.Fl s Li | |
|
.Ar netid |
|
.Op Fl o Ar outfile |
|
.Op Ar infile |
|
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm |
.Nm |
is a tool that generates C code to implement an |
is a tool that generates C code to implement an |
|
|
.Pp |
.Pp |
The server created can be started both by the port monitors |
The server created can be started both by the port monitors |
(for example, |
(for example, |
.Em inetd |
.Xr inetd 8 Ns ) |
or |
|
.Em listen ) |
|
or by itself. |
or by itself. |
When it is started by a port monitor, |
When it is started by a port monitor, |
it creates servers only for the transport for which |
it creates servers only for the transport for which |
the file descriptor 0 was passed. |
the file descriptor 0 was passed. |
The name of the transport must be specified |
The transports are chosen at run time and not at compile time. |
by setting up the environment variable |
|
.Ev PM_TRANSPORT . |
|
When the server generated by |
|
.Nm |
|
is executed, |
|
it creates server handles for all the transports |
|
specified in |
|
.Ev NETPATH |
|
environment variable, |
|
or if it is unset, |
|
it creates server handles for all the visible transports from |
|
.Pa /etc/netconfig |
|
file. |
|
Note: |
|
the transports are chosen at run time and not at compile time. |
|
When the server is self-started, |
When the server is self-started, |
it backgrounds itself by default. |
it backgrounds itself by default. |
A special define symbol |
A special define symbol |