Slackware::Slackget::Network::Connection

A wrapper for network operation in slack-get
Download

Slackware::Slackget::Network::Connection Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • DUPUIS Arnaud
  • Publisher web site:
  • http://search.cpan.org/~dupuisarn/slackget10-0.12c/lib/slackget10/Base.pm

Slackware::Slackget::Network::Connection Tags


Slackware::Slackget::Network::Connection Description

A wrapper for network operation in slack-get Slackware::Slackget::Network::Connection is a Perl wrapper for network operation in slack-get.This class is anoter wrapper for slack-get. It will encapsulate all network operation. This class can chang a lot before the release and it may be rename in Slackware::Slackget::NetworkConnection.Some words about subclassWARNING: The Slackware::Slackget::Network::Connection::* "drivers" API changed with version 1.0.0This class use subclass like Slackware::Slackget::Network::Connection::HTTP or Slackware::Slackget::Network::Connection::FTP as "drivers" for a specific protocol.You can add a "driver" class for a new protocol easily by creating a module in the Slackware::Slackget::Network::Connection:: namespace.You must know that all class the Slackware::Slackget::Network::Connection::* must implements the following methods (the format is : < method name(< arguments >)> : < returned value >, parmameters between [] are optionnals): - __test_server : a float (the server response time) - __fetch_file(,) : a boolean (1 or 0). NOTE: this method store the fetched file on the hard disk. If $local_file is not defined, fetch() must store the file in or in "download_directory" (constructor parameter). - __get_file() : the file contentMoreover, this "driver" have to respect the namming convention : the protocol name it implements in upper case (for example, if you implements a driver for the rsync:// protocol the module must be called Slackware::Slackget::Network::Connection::RSYNC.pm). Requirements: · Perl


Slackware::Slackget::Network::Connection Related Software