mtorrent-dht
Asynchronous implementation of Kademlia-based Distributed Hash Table (DHT) for the BitTorrent protocol. Based on Tokio and used as part of the mtorrent client.
Example usage:
use mtorrent_dht as dht;
// Create the UDP socket for DHT:
let socket = bind.await?;
// Set up the DHT stack:
let = setup_udp;
let =
setup_queries;
let processor = new;
// Run the DHT system:
join!;