C++ Distributed Hash Table
Public Member Functions | Public Attributes | List of all members
dht::Bucket Struct Reference
Collaboration diagram for dht::Bucket:
Collaboration graph
[legend]

Public Member Functions

 Bucket (sa_family_t af, const InfoHash &f={}, time_point t=time_point::min())
 
Sp< NoderandomNode ()
 
void sendCachedPing (net::NetworkEngine &ne)
 
void connectivityChanged ()
 

Public Attributes

sa_family_t af {0}
 
InfoHash first {}
 
time_point time {time_point::min()}
 
std::list< Sp< Node > > nodes {}
 
Sp< Nodecached
 

Detailed Description

Definition at line 31 of file routing_table.h.

Member Function Documentation

◆ randomNode()

Sp<Node> dht::Bucket::randomNode ( )

Return a random node in a bucket.


The documentation for this struct was generated from the following file: