|
|
The rpcgen compiler takes optional arguments that allow a programmer to specify a desired network type or even a specific network identifier. (For details about network selection, see ``Remote Procedure Call programming''.)
The
-s
flag creates a server that responds to requests on all
transports of a specified type.
For example, the invocation
rpcgen -s datagram_n prot.x
writes a server to standard output that responds to any of the connectionless transports specified in the NETPATH environment variable (or in /etc/netconfig, if NETPATH is not defined or does not specify any connectionless transports).
Similarly, the -n flag creates a server that responds only to requests from the transport specified by a single network identifier that must match a network-id in the /etc/netconfig file.