Package-level declarations
Types
Link copied to clipboard
object ExtensionHandshake
The BEP-10 extension-protocol handshake: the bencoded dict exchanged as extended message id 0 right after the BitTorrent handshake (when the extension reserved bit is set). Port of libtorrent's bt_peer_connection::write_extensions / parse_extensions.
Link copied to clipboard
Reassembles the metadata (info) blob from incoming UtMetadata data pieces and verifies it against the expected info-hash. This is the codec-side counterpart of ut_metadata_plugin::received_metadata / metadata_request in ut_metadata.cpp.
Link copied to clipboard
object UtMetadata
BEP-9 "Extension for Peers to Send Metadata Files" (ut_metadata). This is the pure message codec, ported from libtorrent's ut_metadata.cpp (src/ut_metadata.cpp, ut_metadata_peer_plugin::write_metadata_packet and on_extended).