BitTorrent - Perl extension for extracting, publishing and maintaining BitTorrent related things


BitTorrent documentation  | view source Contained in the BitTorrent distribution.

Index


NAME

Top

BitTorrent - Perl extension for extracting, publishing and maintaining BitTorrent related things

SYNOPSIS

Top

	use BitTorrent;
	my $torrentfile = "http://www.mininova.org/get/620364";
	my $obj		= BitTorrent->new();
	my $HashRef1 = $obj->getHealth($torrentfile);
	my $HashRef = $obj->getTrackerInfo($torrentfile);

	print "Seeder: " . $HashRef1->{seeder};
	print "Leecher: " . $HashRef1->{leecher};

	print "Size: $HashRef->{'total_size'}\n";
	print "Hash: $HashRef->{'hash'}\n";
	print "Announce: $HashRef->{'announce'}\n";

	foreach my $f ( $HashRef->{'files'}) {

		foreach my $_HashRef( @{$f} ) {

			print "FileName: $_HashRef->{'name'}\n";
			print "FileSize: $_HashRef->{'size'}\n";

		}; # foreach my $_HashRef( @{$f} ) {

	}; # foreach my $f ( $HashRef->{'files'}) {




DESCRIPTION

Top

BitTorrent: Minor Update Release: + get Seeder and Leecher Infos from given torrent url file. + extraction of important information from tracker including filenames, filesize, hash string, announce url

EXPORT

getHealth(): get Seeder and Leecher Infos getTrackerInfo(): get filenames, filesize, hash string, announce url from given torrent file

SEE ALSO

Top

http://search.cpan.org/author/ORCLEV/Net-BitTorrent-File-1.02-fix/lib/Net/BitTorrent/File.pm http://search.cpan.org/author/JMCADA/Net-BitTorrent-PeerPacket-1.0/lib/Net/BitTorrent/PeerPacket.pm

http://www.zoozle.net http://www.zoozle.org http://www.zoozle.biz

AUTHOR

Top

Marc Qantins, <qantins@gmail.com<gt>

COPYRIGHT AND LICENSE

Top


BitTorrent documentation  | view source Contained in the BitTorrent distribution.