Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rpcgen(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rpcinfo



RPCGEN(1,C)                 AIX Commands Reference                  RPCGEN(1,C)



-------------------------------------------------------------------------------
rpcgen



PURPOSE

Compiles a Remote Procedure Call program when NFS is installed on your system.

SYNTAX


             +----+
             | -c |
          +--| -h |------+
          |  +----+      |   +--------------+
rpcgen ---|      one of  |---|              |--- input file ---|
          |      +-----+ |   +- -o outfile -+
          +- -s -| udp |-+
                 | tcp |
                 +-----+


DESCRIPTION

The rpcgen command generates C Language code for implementing an RPC protocol.
Input to rpcgen is in Remote Procedure Call Language (RPCL).  RPCL is similar
to the C Programming Language.

The rpcgen command operates in the following modes:

  o Converts RPCL definitions to C Language definitions and puts them in a
    header file.

  o Compiles the XDR routines that serialize or convert the data between the
    machine issuing the Remote Procedure Call and the machine carrying it out.

  o Compiles converted RPCL definitions and puts them in a header file named
    infile.h.  Compiles the XDR routines and puts them in infile.c.

  o Compiles an RPC server skeleton.  Using the skeleton, you can write local
    procedures that implement RPC servers without invoking RPC protocols.

In each mode, the inputfile can contain comments (with the same format as C
Language comments) and preprocessor directives.  The comments are ignored and
the directives are copied into the output header file.  You can customize XDR
routines by leaving some data types undefined.  For every undefined data type,
rpcgen will assume that a routine with an xdr prefix exists.

FLAGS





Processed November 8, 1990        RPCGEN(1,C)                                 1





RPCGEN(1,C)                 AIX Commands Reference                  RPCGEN(1,C)



-c        Compiles XDR routines.

-h        Compiles C data-definitions in a header file.

-o {outfile}
          Specifies the name of the output file.  If you do not specify the
          output file name, rpcgen uses the standard output as the default.

-s transport
          Compiles a server using a transport.  This flag must be invoked once
          for each transport being served.

RELATED INFORMATION

See the following command:  "rpcinfo."

See xdr subroutines in the AIX Technical Reference (External data
representation).

See rpcgen in the AIX Programming Tools and Interface Guide.



































Processed November 8, 1990        RPCGEN(1,C)                                 2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026