Module rustydht_lib::common[][src]

Expand description

Miscellaneous common structs used throughout the library

Modules

Trait and structs that help a DHT node to figure out what its globally-routable external IPv4 address is.

Structs

Represents the id of a Node or a BitTorrent info-hash. Basically, it’s a 20-byte identifier.

Represents a Node on the DHT network. A node has an Id and a SocketAddr.

Represents a DHT transaction id, which are basically just small byte strings. This type is not yet used widely across this codebase.

Constants

The length (in bytes) of BitTorrent info hashes and DHT node ids.