rpcgen Command

Use the rpcgen command to generate C code to implement an RPC protocol. The input to RPCGEN is a language similar to C, known as RPC language.

You normally use rpcgen infile to generate the following four output files. For example, if the infile is named PROTO.X, rpcgen generates:

For more information on the rpcgen command, see the Sun Microsystems publication, Networking on the Sun Workstation: Remote Procedure Call Programming Guide.

Syntax

─rpcgen── infile─────────────────────────────────────────────
─rpcgen────┬─ -c─┬───┬──────────────────────────┬────────────
             ├─ -h─┤   └─ -o outfile─┬─────────┬──┘
             ├─ -l─┤                 └─ infile─┘
             └─ -m─┘
─rpcgen──── -s transport───┬─────────────┬───┬──────────┬────
                             └─ -o outfile─┘   └─ infile──┘

Parameters

  • c -h -l -m -o outfile infile -s transport


    [Back: Client Side Program]
    [Next: rpcinfo Command]