diff options
Diffstat (limited to 'toxcore/DHT.h')
-rw-r--r-- | toxcore/DHT.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/DHT.h b/toxcore/DHT.h index 4ae99049..048bfcf4 100644 --- a/toxcore/DHT.h +++ b/toxcore/DHT.h | |||
@@ -302,6 +302,11 @@ int DHT_getfriendip(const DHT *dht, const uint8_t *public_key, IP_Port *ip_port) | |||
302 | */ | 302 | */ |
303 | int id_closest(const uint8_t *pk, const uint8_t *pk1, const uint8_t *pk2); | 303 | int id_closest(const uint8_t *pk, const uint8_t *pk1, const uint8_t *pk2); |
304 | 304 | ||
305 | /* Add node to the node list making sure only the nodes closest to cmp_pk are in the list. | ||
306 | */ | ||
307 | _Bool add_to_list(Node_format *nodes_list, unsigned int length, const uint8_t *pk, IP_Port ip_port, | ||
308 | const uint8_t *cmp_pk); | ||
309 | |||
305 | /* Get the (maximum MAX_SENT_NODES) closest nodes to public_key we know | 310 | /* Get the (maximum MAX_SENT_NODES) closest nodes to public_key we know |
306 | * and put them in nodes_list (must be MAX_SENT_NODES big). | 311 | * and put them in nodes_list (must be MAX_SENT_NODES big). |
307 | * | 312 | * |