NAME
Net::BitTorrent::Session::Peer::Request - Incoming request
CONSTRUCTOR
new ( { [ARGS] } )
-
Creates a
Net::BitTorrent::Session::Peer::Request
object. This constructor should not be used directly.
METHODS
as_string ( [ VERBOSE ] )
-
Returns a 'ready to print' dump of the
Net::BitTorrent::Session::Peer::Request
object's data structure. If called in void context, the structure is printed toSTDERR
.See also: [id://317520], Net::BitTorrent::as_string()
client ( )
-
Returns the Net::BitTorrent object related to this request.
index ( )
-
Returns the zero based index of the related Net::BitTorrent::Session::Piece object.
length ( )
-
Returns the amount of data the peer requested.
offset ( )
-
Returns the offset of data the peer requested.
peer ( )
-
Returns the Net::BitTorrent::Session::Peer object related to this request.
piece ( )
-
Returns the Net::BitTorrent::Session::Piece object related to this request.
session ( )
-
Returns the Net::BitTorrent::Session object related to this request.
timestamp ( )
-
Returns the time when the request was made.
AUTHOR
Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/
CPAN ID: SANKO
LICENSE AND LEGAL
Copyright 2008 by Sanko Robinson <sanko@cpan.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html or the LICENSE file included with this module.
All POD documentation is covered by the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License (http://creativecommons.org/licenses/by-nc-sa/3.0/us/).
Neither this module nor the AUTHOR is affiliated with BitTorrent, Inc.