Event::RPC::Server

Simple API for event driven RPC servers.
Download

Event::RPC::Server Ranking & Summary

Advertisement

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

Event::RPC::Server Tags


Event::RPC::Server Description

Simple API for event driven RPC servers. Event::RPC::Server is a simple API for event driven RPC servers.SYNOPSIS use Event::RPC::Server; use My::TestModule; my $server = Event::RPC::Server->new ( #-- Required arguments port => 8888, classes => { "My::TestModule" => { new => "_constructor", get_data => 1, set_data => 1, clone => "_object", }, }, #-- Optional arguments name => "Test server", logger => Event::RPC::Logger->new(), start_log_listener => 1, ssl => 1 ssl_key_file => "server.key", ssl_cert_file => "server.crt", ssl_passwd_cb => sub { "topsecret" }, auth_required => 1, auth_passwd_href => { $user => Event::RPC->crypt($user,$pass) }, auth_module => Your::Own::Auth::Module->new(...), loop => Event::RPC::Loop::Event->new(), host => "localhost", load_modules => 1, auto_reload_modules => 1, connection_hook => sub { ... }, ); $server->start; # and later from inside your server implementation Event::RPC::Server->instance->stop;Use this module to add a simple to use RPC mechanism to your event driven server application.Just create an instance of the Event::RPC::Server class with a bunch of required settings. Then enter the main event loop through it, or take control over the main loop on your own if you like (refer to the MAINLOOP chapter for details).General information about the architecture of Event::RPC driven applications is collected in the Event::RPC manpage. Requirements: · Perl


Event::RPC::Server Related Software