Main > Programming > Libraries >

RPC::pClient 0.1005

RPC::pClient 0.1005

Sponsored Links

RPC::pClient 0.1005 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.019 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 823
Date added: 2007-07-24
Publisher: Jochen Wiedmann

RPC::pClient 0.1005 description

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);

RPC::pClient 0.1005 Screenshot

Advertisements

RPC::pClient 0.1005 Keywords

Bookmark RPC::pClient 0.1005

Hyperlink code:
Link for forum:

RPC::pClient 0.1005 Copyright

WareSeeker periodically updates pricing and software information of RPC::pClient 0.1005 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of RPC::pClient 0.1005 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Tiny ERP Web client is a Turbogears/AJAX interface for the enterprise management software Tiny ERP. Free Download
perlrpcgen is a Perl module that can generate Perl interfaces from ONC RPC interface definitions. Free Download
XML-RPC Client/Server C Library supports persistent HTTP/1.1 conenctions over SSL. Free Download
Undisposable Clients provides easy-to-use API kits for using Undisposable.org in various programming languages. Free Download
RPC::XML is a set of classes for core data, message and XML handling. Free Download
Net::DAAP::Client is a client for Apple iTunes DAAP service. Free Download
sarPplot is a simple application which takes output of atsar application and put it into Gnuplot config files. Free Download
XML-RPC is a C library for remote procerure call. Comunication is based on XML and uses http protocol. Free Download