RPC::Simple::CallHandler - Perl class to handle RPC calls with call-back
use RPC::Simple::CallHandler;
This class is intanciated on the remote side each time a function is called with a call-back ref. This class will hold the relevant information so that the call-back will be passed to the local object which issued the call.
Used only for asynchronous functions calls. I.e the called function cannot pass a result immediately, it will have to call-back this handler.
Call the remote_object methods with a call-back parameter and the passed arguments, store the handler ref.
Note that the called method must be able to handle a sub ref parameter. This sub must be called when the function is over.
Usually the call-back function will be a closure.
call-back method.
Dominique_Dumont@hp.com
perl(1).
To install RPC::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RPC::Simple
CPAN shell
perl -MCPAN -e shell install RPC::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.