mtorrent-core 0.4.0

Fundamentals for building asynchronous BitTorrent clients
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod channels;
mod handshake;
mod message;
mod states;

#[cfg(feature = "mocks")]
pub mod testutils;

pub use channels::*;
pub use handshake::{Handshake, reserved_bits};
pub use message::{
    Bitfield, BlockInfo, DownloaderMessage, ExtendedHandshake, ExtendedMessage, Extension,
    PeerExchangeData, UploaderMessage,
};
pub use states::*;

pub const MAX_BLOCK_SIZE: usize = 16 * 1024;