Expand description
Miscellaneous common structs used throughout the library
Modules§
- ipv4_
addr_ src - Trait and structs that help a DHT node to figure out what its globally-routable external IPv4 address is.
Structs§
- Id
- Represents the id of a Node or a BitTorrent info-hash. Basically, it’s a 20-byte identifier.
- Node
- Represents a Node on the DHT network. A node has an Id and a SocketAddr.
- Transaction
Id - Represents a DHT transaction id, which are basically just small byte strings. This type is not yet used widely across this codebase.
Constants§
- ID_SIZE
- The length (in bytes) of BitTorrent info hashes and DHT node ids.