torrentdht 0.1.1

DHT discovery with mTLS handshake handoff; optional BitTorrent when the host opts in
Documentation
1
2
3
4
5
6
7
use crate::peer::PeerConnection;

/// Handle inbound peer connections routed by info hash (post-mTLS BitTorrent wire).
pub trait InboundHandler: Send + Sync {
    /// Post-mTLS BitTorrent connection (handshake already complete).
    fn spawn_secure_connected(&self, conn: PeerConnection);
}