NAME

RPC::Simple::AnyRemote - Perl base class for a remote object accessible by SRPC

SYNOPSIS

package myClass ;
use vars qw(@ISA);
use RPC::Simple::AnyRemote;

@ISA=('RPC::Simple::AnyRemote') ;

DESCRIPTION

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' => [ $object_ref, 'method' ]

Usually, the methods will be like :

sub 
{
  my $self = shift ;
  my $param = shift ;
  my $callback ;

  if ($param eq 'callback')
    {
      # callback required
      $callback = shift          
    }

  # user code

  # when the user code is over
  return unless defined $callback ;

  my ($obj,$method) = @$callback ;
  $obj -> $method ( $your, $arguments ); # well, sort of
}

Methods

query (key , ... )

query self for a key/value,

Returns a hash ref containing key/values for all passed keys.

update(key => value, ... )

update self with a key/value

AUTHOR

Dominique Dumont, Dominique_Dumont@grenoble.hp.com

SEE ALSO

perl(1), RPC::Simple::AnyLocal(3)