ONC+ Developer's Guide

SunOS 5.x Features

This section lists the features found in the current rpcgen code generator that are not found in previous versions.

Template Generation

rpcgen generates client-side, server-side, and makefile templates. See "Client and Server Templates" for the list of options.

C-style Mode

rpcgen has two compilation modes, C-style and default. C-style mode lets arguments be passed by value, instead of as pointers to a structure. It also supports passing multiple arguments. The default mode is the same as in previous releases. See "C-style Mode" for the example code for both modes.

Multithread-Safe Code

rpcgen can now generate MT-safe code for use in a threaded environment. By default, the code generated by rpcgen is not MT-safe. See "MT-Safe Code" for the description and example code.

Multithread Auto Mode

rpcgen can generate MT-safe server stubs that operate in the MT Auto mode. See "MT Auto Mode" for the definition and example code.

Library Selection

rpcgen can use library calls for either TS-RPC or TI-RPC. See "TI-RPC or TS-RPC Library Selection".

ANSI C -compliant Code

The output generated by rpcgen conforms to ANSI C standards. The code can also be used in the Sun WorkshopTM Compilers C++ environment. See "ANSI C-compliant Code".