Each node holds a k-bucket containing the contacts whose KUID falls within the range of the k-bucket.
Data Fields | |
| kuid_t | prefix |
| Node prefix of the k-bucket. | |
| kbucket * | parent |
| Parent node in the tree. | |
| kbucket * | zero |
| Child node for "0" prefix. | |
| kbucket * | one |
| Child node for "1" prefix. | |
| hash_list_t * | good |
| The good nodes. | |
| hash_list_t * | stale |
| The (possibly) stale nodes. | |
| hash_list_t * | pending |
| The nodes which are awaiting decision. | |
| GHashTable * | all |
| All nodes in one of the lists. | |
| time_t | last_refresh |
| Last time bucket was refreshed. | |
| guchar | depth |
| Depth in tree (meaningful bits). | |
| gboolean | ours |
| Whether our KUID falls in that bucket. | |
|
|
All nodes in one of the lists.
|
|
|
Depth in tree (meaningful bits).
|
|
|
The good nodes.
|
|
|
Last time bucket was refreshed.
|
|
|
Child node for "1" prefix.
|
|
|
Whether our KUID falls in that bucket.
|
|
|
Parent node in the tree.
|
|
|
The nodes which are awaiting decision.
|
|
|
Node prefix of the k-bucket.
|
|
|
The (possibly) stale nodes.
|
|
|
Child node for "0" prefix.
|
1.3.9.1