Net::BitTorrent::DHT - Kademlia based Distributed Hash Table
new ( [ARGS] )
Creates a Net::BitTorrent::DHT object. This constructor should not be used directly.
Net::BitTorrent::DHT
get_client ( )
Returns the Net::BitTorrent object related to this DHT object.
get_sockaddr ( )
Return the address part of the sockaddr structure for the UDP socket.
See also: Net::BitTorrent
get_sockport ( )
Return the port number that the UDP socket is using on the local host.
add_node ( )
TODO
get_node_id ( )
Get the Node ID used to identify this client in the DHT swarm.
get_routing_table ( )
locate_nodes_near_target ( )
as_string ( [ VERBOSE ] )
Returns a 'ready to print' dump of the Net::BitTorrent::DHT object's data structure. If called in void context, the structure is printed to STDERR.
STDERR
Currently, the routing table is flat.
Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/
CPAN ID: SANKO
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 5.10 (or higher). See http://www.perl.com/perl/misc/Artistic.html or the LICENSE file included with this distribution.
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.
To install Net::BitTorrent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::BitTorrent
CPAN shell
perl -MCPAN -e shell install Net::BitTorrent
For more information on module installation, please visit the detailed CPAN module installation guide.