This class must be inherited by the users class actually performing the
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_reference
Usually, the methods will be like :
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" ) ;
controller_ref is the RPC::Simple::ObjectHandler object actually controlling
If you overload new, dont forget to call also the inherited new method.
When this method is called (generally through perl mechanism), the call will
be forwarded with all parameter to the local object.
Note that if the remote method name is not declated in the @RPC_SUB array,
AnyLocal will try to autoload this mehtod.
Note that this method is not able to handle sub_reference and call back
mechanism is not possible fromthis side.