---
name: "ocamlrpcgen"
section: "1"
platform: "linux"
package: "librpc-ocaml-dev"
version: "0.4.5-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/ocamlrpcgen"
---

# ocamlrpcgen(1)

Ocaml module generator for RPC message handling

## NAME

ocamlrpcgen - Ocaml module generator for RPC message handling

## SYNOPSIS

**ocamlrpcgen** \[*OPTION*\] *file.xdr*...

## DESCRIPTION

**ocamlrpcgen** is a command-line tool that generates O'Caml modules which greatly simplify the creation and invocation of remote procedures. It uses description files in the XDR format.

- **-aux**

  Generates file\_aux.ml file

- **-clnt**

  Generates file\_clnt.ml file

- **-srv**

  Generates file\_srv.ml file

- **-int v**

  Set the default variant of the language mapping of int

- **-hyper v**

  Set the default variant of the language mapping of hyper

- **-cpp p**

  Call the command p as preprocessor

- **-D var=value**

  Define the preprocessor variable var

- **-U var**

  Undefine the preprocessor variable var

- **-help**, **--help**

  Display the list of options

## AUTHOR

This manual page was written by Thomas Petazzoni \<thomas.petazzoni@enix.org\> for the Debian GNU/Linux system (but may be used by others).
