Slackware::Slackget::Network::Message - The response object for Slackware::Slackget::Network class
Version 1.0.0
This class is the message object used by the Slackware::Slackget::Network class to return informations from the network connection.
This module is the evolution of the old Slackware::Slackget::Network::Response.
the constructor require no argument. But store every given argument in the object (which is a hashref).
my $msg = new Slackware::Slackget::Network::Message ;
This is an alternative constructor to create a Slackware::Slackget::Network::Message with the whole slack-get protocol compatible data structure.
You must provide the following arguments :
* an action id (integer) * a action (string) * some data
Here is a little example :
my $msg = Slackware::Slackget::Network::Message->new( 123456789, 'search', @keywords, );
Create a base enveloppe for the SlackGetProtocol in the raw_data section. This method access directly to the object's data structure.
Be carefull not to use it on an already initialized object. Else all "raw_data" will be lost.
$self = { action => 0, action_id => 0, raw_data => { Enveloppe => { Action => { id => 0 , content => 0, }, Data => {}, } } };
true if the operation is a success
true if the operation is an error
return a string containing an error message. Works only if $response->is_error() is true.
true if the daemon return a choice
return all raw data returned by the remote daemon
return (or set) the action of the message (all network messages must have an action).
return (or set) the action ID of the message (all network messages must have an action id).
DUPUIS Arnaud, <a.dupuis@infinityperl.org>
<a.dupuis@infinityperl.org>
Please report any bugs or feature requests to bug-Slackware-Slackget@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Slackware-Slackget. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-Slackware-Slackget@rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Slackware::Slackget
You can also look for information at:
Infinity Perl website
http://www.infinityperl.org/category/slack-get
slack-get specific website
http://slackget.infinityperl.org
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Slackware-Slackget
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Slackware-Slackget
CPAN Ratings
http://cpanratings.perl.org/d/Slackware-Slackget
Search CPAN
http://search.cpan.org/dist/Slackware-Slackget
Thanks to Bertrand Dupuis (yes my brother) for his contribution to the documentation.
Copyright 2005 DUPUIS Arnaud, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Slackware::Slackget, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Slackware::Slackget
CPAN shell
perl -MCPAN -e shell install Slackware::Slackget
For more information on module installation, please visit the detailed CPAN module installation guide.