RPC::Simple::AnyRemote

Perl base class for a remote object accessible by RPC
Download

RPC::Simple::AnyRemote Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Clint Edwards
  • Publisher web site:
  • http://search.cpan.org/~cedwards/

RPC::Simple::AnyRemote Tags


RPC::Simple::AnyRemote Description

Perl base class for a remote object accessible by RPC RPC::Simple::AnyRemote is a Perl module for a remote object accessible by RPC.SYNOPSIS package myClass ; use vars qw(@ISA @RPC_SUB); use RPC::Simple::AnyRemote; @ISA=('RPC::Simple::AnyRemote') ; @RPC_SUB = qw(localMethod);This class must be inherited by the user's class actually performing the remote functions.Note that any user defined method which can be called by the local object must be able to handle the following optionnal parameters :'callback' => code_referenceUsually, the methods will be like : sub remoteMethod { my $self = shift ; my $param = shift ; my $callback ; if ($param eq 'callback') { # callback required $callback = shift } # user code # can call a method from local object $self->localMethod("Hey, remoteMethod was called !!"); # when the user code is over return unless defined $callback ; &$callback("Hello local object" ) ; } Requirements: · Perl


RPC::Simple::AnyRemote Related Software