idl2pmrpc - IDL compiler to Perl RPC-GIOP
idl2pmrpc [options] spec.idl
All options are forwarded to C preprocessor, except -h -i -J -v -x.
With the GNU C Compatible Compiler Processor, useful options are :
Specific options :
Display help.
Specify a path for import (only for version 3.0).
Specify a path for Perl package importation (use package;).
Display version.
Enable export (only for version 3.0).
idl2pmrpc parses the given input file (IDL) and generates :
a Perl client stub & server skeleton spec.pm for RPC-GIOP
idl2pmrpc is a Perl OO application what uses the visitor design pattern. The parser is generated by Parse::Yapp.
idl2pmrpc needs a cpp executable.
CORBA Specifications, including IDL (Interface Definition Language) are available on <http://www.omg.org/>.
CORBA mapping for Perl [mapping.pod - Draft 1, 7 October 1999] comes with the package CORBA::MICO or CORBA::ORBit.
RPC-GIOP is an another RPC (Remote Procedure Call) mecanism.
RPC-GIOP reuses a subset of CORBA GIOP messages, but don't deal with any CORBA ORB (Object Request Broker). RPC-GIOP reuses the CORBA CDR (Common Data Representation) transfer syntax.
An interface (a set of operations) is defined with CORBA IDL (Interface Definition Language).
RPC-GIOP has a lot of common properties with CORBA GIOP :
needs a reliable transport layer (typically TCP/IP)
uses a binary format (CDR)
is interoperable (byte-order)
Use rpc1 as current directory.
The file calculator.idl describes the interface of a simple calculator.
First, run :
idl2pmrpc calculator.idl
Second, run the server (see srv_calc.pm that contains the implementation) :
perl server.pl
Third, run the client (Tkinter based)
perl client.pl
cpp, idl2html, idl2pm
(c) 2004-2008 François PERRAD, France. All rights reserved.
This program and all CORBA::Perl modules are distributed under the terms of the Artistic Licence.
François PERRAD, francois.perrad@gadz.org
To install CORBA::Perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CORBA::Perl
CPAN shell
perl -MCPAN -e shell install CORBA::Perl
For more information on module installation, please visit the detailed CPAN module installation guide.