mtorrent-core 0.5.0

Fundamentals for building asynchronous BitTorrent clients
Documentation
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;

pub(crate) use handshake::PROTO_STR as PROTOCOL_STRING;