DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Developing distributed applications using ONC RPC and XDR

Compiling RPC code

When you write an application that uses the the RPC protocol to call a program on a remote machine you use a C-like language called Remote Procedure Call Language (RPCL). Once the code is written in RPCL, use the rpcgen(NC) command to generate actual C language code that implements the remote procedure call in accordance with the RPC protocol.

The RPCL input may contain C-style comments and normal C language preprocessor directives. Comments are simply ignored, and the directives are copied uninterpreted into the output header file.

When creating XDR routines, you can customize them by leaving some of the data types undefined. When rpcgen encounters these undefined data types, it assumes the existence of a corresponding routine named xdr_type_name , where type_name is the name of the undefined data type.

Using the various options, you can compile XDR routines, compile C data-definitions (a header file), specify the name of the output file, or compile a server using the given transport.

See the rpcgen(NC) manual page for for more information.


Next topic: Using remote procedure calls
Previous topic: Developing distributed applications using ONC RPC and XDR

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003