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

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

Serving Software Downloads in 956 Categories, Downloaded 50.398.848 Times

RPC::pClient 0.1005

  Date Added: January 20, 2010  |  Visits: 796

RPC::pClient

Report Broken Link
Printer Friendly Version


Product Homepage
Download (97 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  
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  
File Sharing  -  CTorrent 1.3.4
CTorrent is a BitTorrent client written in the C programming language, known to be a very robust and mature programming language, which produces fast and optimized applications. There are compilers for most operating systems, making programs...
88.06 KB  
Miscellaneous  -  PHP i18n 1.0.0a
PHP i18n is a PHP framework and function libraries to do internationalization (i18n) and localization of your PHP web sites.
40.96 KB  
File Sharing  -  Fastream NetFile 5.5
Formerly known as FTP++ P2P, NetFile is a multi-threaded FTP client with resuming, passive mode, simultaneous multi-socket file transfers. Features: - Ad-supported and totally FREE to use with the option of removing ads by registration - Very...
2.3 MB  
Text Chat Clients  -  Irssi 0.8.11
Irssi is a modular IRC client for UNIX that currently has only text mode user interface, but 80-90% of the code isnt text mode specific, so other UIs could be created pretty easily. Irssi also isnt really even IRC specific anymore, theres...
122.88 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
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