[−][src]Module tox_core::onion::onion_announce
The implementation of onion announce
Structs
OnionAnnounce | Holds list of announced onion nodes and process announce requests. |
Constants
ONION_ANNOUNCE_MAX_ENTRIES | Maximum number of entries in onion announce list. When number of entries exceeds this value farthest nodes are dropped using DHT distance function. |
ONION_ANNOUNCE_TIMEOUT | Diration of time for which announce entry can be stored in onion announce list without re-announcing. |
PING_ID_TIMEOUT | Interval of time when onion ping id is valid after it was generated.
To be precise ping id will be valid for from |
SECRET_BYTES_SIZE | Number of secret random bytes to make onion ping id unique for each node. |
Functions
initial_ping_id | Create onion ping id filled with zeros. |