aria2-protocol 0.3.10

Multi-protocol networking stack for aria2-rust: HTTP/HTTPS client, FTP/SFTP, full BitTorrent (DHT/PEX/MSE), and Metalink V3/V4 parser
Documentation
use std::collections::BTreeMap;

use super::*;
use crate::bittorrent::bencode::codec::BencodeValue;
use crate::bittorrent::dht::modern::{MutableValue, StoredItem};
use crate::bittorrent::dht::routing_table::RoutingTable;

fn make_handler() -> DhtQueryHandler {
    DhtQueryHandler::new([0xAAu8; 20])
}

fn make_routing_table() -> RoutingTable {
    let mut rt = RoutingTable::new([0xAAu8; 20]);
    // Add some nodes
    for i in 0..8u8 {
        let node = DhtNode::new([i; 20], format!("10.0.0.{}:6881", i).parse().unwrap());
        rt.insert(node);
    }
    rt
}

mod announce_peer;
mod basic_queries;
mod items;
mod peer_responses;