| Slackware-Slackget documentation | Contained in the Slackware-Slackget distribution. |
Slackware::Slackget::Network::Backend::Base64 - Base64 backend for slack-get network protocol
Version 0.8.0
Still to do
Still to do
All methods return a Slackware::Slackget::Network::Message (Slackware::Slackget::Network::Message) object, and if the remote slack-getd return some data they are accessibles via the data() accessor of the Slackware::Slackget::Network::Message object.
DUPUIS Arnaud, <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.
You can find documentation for this module with the perldoc command.
perldoc Slackware::Slackget
You can also look for information at:
Thanks to Bertrand Dupuis (yes my brother) for his contribution to the documentation.
Slackware::Slackget::Network::Message, Slackware::Slackget::Status, Slackware::Slackget::Network::Connection
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.
| Slackware-Slackget documentation | Contained in the Slackware-Slackget distribution. |
package Slackware::Slackget::Network::Backend::Base64; use warnings; use strict; require Slackware::Slackget::Network::Message ; use MIME::Base64 ();
our $VERSION = '0.8.0';
sub new { my ($class,%args) = @_ ; my $self = {%args}; bless($self,$class); return $self; }
sub backend_decode { my $self = shift; my $Base64_msg = shift; print "[Slackware::Slackget::Network::Backend::Base64] call backend_decode($Base64_msg).\n" if($ENV{SG_DAEMON_DEBUG}) ; my $data = MIME::Base64::decode( $Base64_msg->data ); print "[Slackware::Slackget::Network::Backend::Base64] decoded data are :\n".$data."\n" if($ENV{SG_DAEMON_DEBUG}) ; return Slackware::Slackget::Network::Message->new(raw_data => $data); }
sub backend_encode { my $self = shift; my $message = shift ; print "[Slackware::Slackget::Network::Backend::Base64] call backend_encode($message).\n" if($ENV{SG_DAEMON_DEBUG}) ; my $Base64 = MIME::Base64::encode($message->data()); print "[Slackware::Slackget::Network::Backend::Base64] encoded Base64:\n$Base64\n" if($ENV{SG_DAEMON_DEBUG}); return Slackware::Slackget::Network::Message->new( action => $message->action, action_id => $message->{action_id}, raw_data => $Base64, ); }
1; # End of Slackware::Slackget::Network::Backend::Base64