DHT Node information Based on libtorrent's node_entry with fail_count and RTT tracking. More...
#include <dht.h>
Public Member Functions | |
| DhtNode () | |
| DhtNode (const NodeId &id, const Peer &peer) | |
| bool | pinged () const |
| bool | confirmed () const |
| void | mark_failed () |
| void | mark_success () |
| void | update_rtt (uint16_t new_rtt) |
| bool | is_worse_than (const DhtNode &other) const |
Public Attributes | |
| NodeId | id |
| Peer | peer |
| std::chrono::steady_clock::time_point | last_seen |
| uint16_t | rtt = 0xffff |
| uint8_t | fail_count = 0xff |
DHT Node information Based on libtorrent's node_entry with fail_count and RTT tracking.
|
inline |
Definition at line 87 of file dht.h.
References fail_count.
|
inline |
Definition at line 113 of file dht.h.
References fail_count, and rtt.
|
inline |
Definition at line 90 of file dht.h.
References fail_count, and pinged().
|
inline |
Definition at line 95 of file dht.h.
References fail_count, and last_seen.
|
inline |
|
inline |
| uint8_t librats::DhtNode::fail_count = 0xff |
Definition at line 77 of file dht.h.
Referenced by confirmed(), is_worse_than(), mark_failed(), mark_success(), and pinged().
| std::chrono::steady_clock::time_point librats::DhtNode::last_seen |
Definition at line 71 of file dht.h.
Referenced by mark_success().
| uint16_t librats::DhtNode::rtt = 0xffff |
Definition at line 74 of file dht.h.
Referenced by is_worse_than(), and update_rtt().