Skip to main content

Crate irontide_wire

Crate irontide_wire 

Source
Expand description

BitTorrent peer wire protocol: handshake, messages, BEP 6/9/10/21/52 extensions, MSE/PE encryption.

Provides message types, handshake, and a tokio codec for framed I/O.

Re-exports§

pub use ssl::SslConfig;
pub use ssl::accept_tls;
pub use ssl::build_client_config;
pub use ssl::build_server_config;
pub use ssl::connect_tls;
pub use ssl::generate_self_signed_cert;

Modules§

mse
Message Stream Encryption / Protocol Encryption (MSE/PE).
ssl
TLS transport for SSL torrents.

Structs§

ExtHandshake
Extension handshake (BEP 10, ext_id=0).
Handshake
Peer wire handshake (BEP 3).
HolepunchMessage
A parsed BEP 55 holepunch extension message.
MessageCodec
Tokio codec for length-prefixed BitTorrent messages.
MetadataMessage
ut_metadata message (BEP 9).

Enums§

Error
Errors from BitTorrent wire protocol operations.
ExtMessage
Parsed extension messages.
HolepunchError
Holepunch error codes (BEP 55).
HolepunchMsgType
Holepunch message type (BEP 55).
Message
Standard BitTorrent peer wire messages (BEP 3).
MetadataMessageType
ut_metadata message types (BEP 9).

Functions§

allowed_fast_set
BEP 6 Allowed-Fast set generation.
allowed_fast_set_for_ip
BEP 6 Allowed-Fast set generation for any IP address family.

Type Aliases§

Result
Crate-level result type.