Net::BitTorrent::Session::Peer::Request - Incoming request


new ( { [ARGS] } )

Creates a Net::BitTorrent::Session::Peer::Request object. This constructor should not be used directly.


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 to STDERR.

See also: Net::BitTorrent

get_client ( )

Returns the Net::BitTorrent object related to this request.

get_index ( )

Returns the zero based index of the related Net::BitTorrent::Session::Piece object.

get_length ( )

Returns the amount of data the peer requested.

get_offset ( )

Returns the offset of data the peer requested.

get_peer ( )

Returns the Net::BitTorrent::Session::Peer object related to this request.

get_piece ( )

Returns the Net::BitTorrent::Session::Piece object related to this request.

get_session ( )

Returns the Net::BitTorrent::Session object related to this request.

get_timestamp ( )

Returns the time when the request was made.


Sanko Robinson <> -


License and Legal

Copyright 2008 by Sanko Robinson <>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10 (or higher). See or the LICENSE file included with this distribution.

All POD documentation is covered by the Creative Commons Attribution- Noncommercial-Share Alike 3.0 License (

Neither this module nor the Author is affiliated with BitTorrent, Inc.