summaryrefslogtreecommitdiff
path: root/toxcore/DHT.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-12-16 11:28:30 -0500
committerirungentoo <irungentoo@gmail.com>2015-12-16 11:28:30 -0500
commitc1e00c5d3940fc590d099692b848a106c28633ad (patch)
tree8ec439fba1709ba5d5b4f2c8577baf6143a13a4b /toxcore/DHT.h
parent1d91699e8e23dab4c221c8402c7f086264a485ee (diff)
Improved the to_ping list.
Diffstat (limited to 'toxcore/DHT.h')
-rw-r--r--toxcore/DHT.h5
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 */
303int id_closest(const uint8_t *pk, const uint8_t *pk1, const uint8_t *pk2); 303int 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 *