[−][src]Module tox_core::dht
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 |
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 |