Event::RPC::Client

Client API to connect to Event::RPC Servers.
Download

Event::RPC::Client Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jrn Reder
  • Publisher web site:
  • http://search.cpan.org/~jred/

Event::RPC::Client Tags


Event::RPC::Client Description

Client API to connect to Event::RPC Servers. Event::RPC::Client is a client API that's able to connect to Event::RPC servers.SYNOPSIS use Event::RPC::Client; my $rpc_client = Event::RPC::Client->new ( #-- Required arguments host => "localhost", port => 5555, #-- Optional arguments classes => , class_map => { "Event::RPC::Test" => "My::Event::RPC::Test" }, ssl => 1, timeout => 10, auth_user => "fred", auth_pass => Event::RPC->crypt("fred",$password), error_cb => sub { my ($client, $error) = @_; print "An RPC error occured: $error "; $client->disconnect; exit; }, ); $rpc_client->connect; #-- And now use classes and methods the server #-- allows to access via RPC, here My::TestModule #-- from the Event::RPC::Server manpage SYNPOSIS. my $obj = My::TestModule->new( data => "foobar" ); print "obj says hello: ".$obj->hello." "; $obj->set_data("new foobar"); print "updated data: ".$obj->get_data." "; $rpc_client->disconnect;Use this module to write clients accessing objects and methods exported by a Event::RPC driven server.Just connect to the server over the network, optionally with SSL and user authentication, and then simply use the exported classes and methods like having them locally in the client.General information about the architecture of Event::RPC driven applications is collected in the Event::RPC manpage.The following documentation describes the client connection options in detail. Requirements: · Perl


Event::RPC::Client Related Software