torrent 0.1.4

High-level async BitTorrent library — session management, HTTP/UDP tracker communication, DHT networking, peer connections, and file storage. Built on torrent-core with tokio.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Async peer communication.
//!
//! Re-exports sync types from `torrent_core::peer` and provides
//! the async [`PeerConnection`] over TCP.
//!
//! # Key Types
//!
//! - [`PeerId`], [`Handshake`], [`PeerMessage`], [`PeerState`] — re-exported from `torrent_core`
//! - [`PeerConnection`] — async TCP connection with buffered I/O

mod stream;

pub use torrent_core::peer::{Handshake, PeerId, PeerMessage, PeerState, decode, encode};

pub use self::stream::PeerConnection;