RPC::pServer

Perl extension for writing pRPC servers.
Download

RPC::pServer Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jochen Wiedmann
  • Publisher web site:
  • http://search.cpan.org/~jwied/Apache-Roaming-0.1003/lib/Apache/Roaming.pm

RPC::pServer Tags


RPC::pServer Description

Perl extension for writing pRPC servers. RPC::pServer is a Perl extension for writing pRPC servers.SYNOPSIS use RPC::pServer; $sock = IO::Socket::INET->new('LocalPort' => 9000, 'Proto' => 'tcp', 'Listen' = 5, 'Reuse' => 1); $connection = new RPC::pServer('sock' => $sock, 'configFile' => $file, 'funcTable' => $funcTableRef, # other attributes # ); while ($running) { $connection->Loop(); if ($connection->error) { # Do something } }pRPC (Perl RPC) is a package that simplifies the writing of Perl based client/server applications. RPC::pServer is the package used on the server side, and you guess what Net::pRPC::Client is for. See Net::pRPC::Client(3) for this part.pRPC works by defining a set of of functions that may be executed by the client. For example, the server might offer a function "multiply" to the client. Now a function call @result = $con->Call('multiply', $a, $b);on the client will be mapped to a corresponding call multiply($con, $data, $a, $b);on the server. (See the funcTable description below for $data.) The function call's result will be returned to the client and stored in the array @result. Requirements: · Perl


RPC::pServer Related Software