Net::BitTorrent::DHT::Standalone
This role is applied automatically when the Net::BitTorrent::DHT constructor is called without a blessed Net::BitTorrent object in the client parameter. For API documentation, see Net::BitTorrent::DHT.
client
Standalone DHT nodes may be useful for statistical purposes.
Aside from the public constructornew( )">, the API Net::BitTorrent::DHT::Standalone is exactly the same as the Net::BitTorrent::DHT.
This creates a new standalone DHT node. Random ports will be opened to incoming UDP connections via IPv4 and IPv6.
use Net::BitTorrent::DHT; my $node = Net::BitTorrent::DHT->new( );
Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/
CPAN ID: SANKO
Copyright (C) 2008-2010 by Sanko Robinson <sanko@cpan.org>
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 notes on the Artistic License 2.0 for clarification.
When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.
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.