Net::BitTorrent::DHT - Kademlia based Distributed Hash Table


new ( [ARGS] )

Creates a Net::BitTorrent::DHT object. This constructor should not be used directly.


node_id ( )

Get the Node ID used to identify this client in the DHT swarm.

as_string ( [ VERBOSE ] )

Returns a 'ready to print' dump of the object's data structure. If called in void context, the structure is printed to STDERR. VERBOSE is a boolean value.


  • The routing table is flat.


While bandwidth to/from DHT nodes is not limited like other traffic, it is taken into account and "drained" from the rate limiter. If there's a burst of DHT traffic, the peer traffic will be limited to avoid the total to exceed the global limit.


Sanko Robinson <> -


License and Legal

Copyright (C) 2008 by Sanko Robinson <>

This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or For clarification, see

When separated from the distribution, all POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See For clarification, see

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