Expand description
The implementaion of dht module functionalities.
Modulesยง
- codec
- Codec for encoding/decoding DHT Packets & DHT Request packets using tokio-io
- daemon_
state - Serialize or deserialize states of tox daemon. When toxcore starts, it deserializes states from serialized file. Toxcore daemon may serialize its states to file with some interval.
- dht_
friend - Module for friend.
- dht_
node - Data structure used by Bucket. PackedNode type contains PK and SocketAddress. PackedNode does not contain status of Node, this struct contains status of node. Bucket needs status of node, because BAD status node should be replaced with higher proirity than GOOD node. Even GOOD node is farther than BAD node, BAD node should be replaced. Here, GOOD node is the node responded within 162 seconds, BAD node is the node not responded over 162 seconds.
- forced_
ktree - ip_port
- Module for utils of IP and Port.
- kbucket
- Structure for holding nodes.
- ktree
- K-buckets structure
- lan_
discovery - Module for LAN discovery.
- precomputed_
cache - LRU cache for
PrecomputedKey
s. - request_
queue - Managing requests IDs and timeouts.
- server
- Functionality needed to work as a DHT node. This module works on top of other modules.
- server_
ext - Extension trait for running DHT server on
UdpSocket