Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.544.746 Times

RPC::pClient 0.1005

  Date Added: January 20, 2010  |  Visits: 557

RPC::pClient

Report Broken Link
Printer Friendly Version


Product Homepage
Download (74 downloads)



RPC::pClient is a Perl extension for writing pRPC clients. SYNOPSIS use RPC::pClient; $sock = IO::Socket::INET->new(PeerAddr => joes.host.de, PeerPort => 2570, Proto => tcp); $connection = new RPC::pClient(sock => $sock, application => My App, version => 1.0, user => joe, password => hello!); 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 RPC::pClient is for. See RPC::pClient(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 calls result will be returned to the client and stored in the array @result. Simple, eh? Client methods new The client constructor. Returns a client object or an error string, thus you typically use it like this: $client = RPC::pClient->new ( ... ); if (!ref($client)) { print STDERR "Error while creating client object: $clientn"; } else { # Do real stuff ... } Call calls a function on the server; the arguments are a function name, followed by function arguments. It returns the function results, if successfull. After executing Call() you should always check the error attribute: An empty string indicates success. Thus the equivalent to $c = Add($a, $b) # Use $c ... is $c = $client->Call("Add", $a, $b); if ($client->error) { # Do something in case of error ... } else { # Use $c ... } CallInt Similar to and internally used by Call. Receives the same arguments, but the result is prepended by a status value: If this status value is TRUE, then all went fine and the following result array is valid. Otherwise an error occurred and the error message follows immediately after the status code. Example: my($status, @result) = $client->CallInt("Add", $a, $b); if (!$status) { # Do something in case of error my $errmsg = shift @result || "Unknown error"; ... } else { ... } Encrypt This method can be used to get or set the cipher attribute, thus the encryption mode. If the method is passed an argument, the argument will be used as the new encryption mode. (undef for no encryption.) In either case the current encryption mode will be returned. Example: # Get the current encryption mode $mode = $server->Encrypt(); # Currently disable encryption $server->Encrypt(undef); # Switch back to the old mode $server->Encrypt($mode);.

Requirements: No special requirements
Platforms: Linux
Keyword: Client Error Function Libraries Mode Programming Prpc Result Rpcpclient Will Be
Users rating: 0/10

License: Freeware Size: 19.46 KB
USER REVIEWS
More Reviews or Write Review


RPC::PCLIENT RELATED
Development Editors  -  Comm Tunnel 2.2.0.78
Comm Tunnel is a free tool to connect endpoints. It builds a tunnel between endpoints. The endpoints can be any of serial port, TCP/IP server, TCP/IP client or UDP. The data received on one endpoint will be forward to anther fourt endpoints. It...
44.52 KB  
Development Tools  -  Steepest Decent Method for Multiple Variable Functions 1.0
Replace your function in the code and the output will be similar to the followingSteepest Descent Method=============Function = -(3*x1+x2+6*x1*x2-2*(x1^2)+2*(x2^2))Hessian...... [ 4 -6] [ ] [-6 -4]Gradient...... [-3 - 6 x2 + 4 x1] [ ] [-1 - 6 x1...
10 KB  
Education  -  Abby Explorer - Basics Free Lite 1.0
Abby Explorer Basics has 6 fun categories for young learners. Children can explore the alphabet, numbers, colors, shapes, and animals. Abby Explorer Basics offers a quiz mode, so that your child will be engaged as well as enforcing their learning....
17.2 MB  
Games  -  Epic Edgar HD 1.0
Epic Edgar HD is a cross platform game that supports online leader boards. This game also supports push notifications. If a new top score in Sniper Mode is Set, All players will be notified. Are you looking for a challenge? If...
77.1 MB  
Education  -  Basic OOP Concepts 1.0.0.0
Basic OOP Concepts application is related to information about the core concepts of Object-oriented programming (OOP). This App consists the most important core concepts of Object-oriented programming (OOP) where explanation will be given about...
3 MB  
Games  -  Where's Messi ? 1.0.0.3
1>---Mode MESSI: Messi and CR7 will be cover by a hat Your task is find Messi You can share your score with your friend by Leader Board Now Let's we enjoy it and world cup 2014 2>--- MODE GUESS FOOTBALL PLAYER you must guess...
7 MB  
Mail Clients  -  Liamail 2002-08-07
Liamail is a graphical email client written with libraries QT. Liamail is like Outlook express. This email client supports attachment now with library mimepp.Protocol supported are pop3 and smtp. We think about to implement imap.
327.68 KB  
Libraries  -  Stream::Reader 0.09
Stream::Reader is a stream reader Perl class. SYNOPSIS # Input stream can be reference to TYPEGLOB or SCALAR, output stream # can be the same types or undefined # Constructor $stream = Stream::Reader->new( *IN, { Limit => $limit, BuffSize...
6.14 KB  
Libraries  -  HTTunnel::Client 0.08
HTTunnel::Client is a client class for Apache::HTTunnel. SYNOPSIS my $hc = new HTTunnel::Client("http://localhost/httunnel") ; $hc->connect(tcp, $some_host, $some_port) ; $hc->print(some request) ; my $some_response = $hc->read(1024) ;...
20.48 KB  
E-Mail Tools  -  Pygmy 0.6.0
Pygmy is a GNOME mail client written in the Python programming. The current version is 0.6.0 (07/12/02)..
266.24 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB