summaryrefslogtreecommitdiff
path: root/toxcore/DHT.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/DHT.h')
-rw-r--r--toxcore/DHT.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/toxcore/DHT.h b/toxcore/DHT.h
index 563ae08c..1ead6f5e 100644
--- a/toxcore/DHT.h
+++ b/toxcore/DHT.h
@@ -200,6 +200,13 @@ typedef struct {
200 DHT_Friend *friends_list; 200 DHT_Friend *friends_list;
201 uint16_t num_friends; 201 uint16_t num_friends;
202 202
203 // Used after loading of file (tox_load), but no longer needed after connect (tox_connect)
204 // Unsure if friends_list and num_friends could just be used instead?
205 DHT_Friend *loaded_friends_list;
206 uint32_t loaded_num_friends;
207 Client_data *loaded_clients_list;
208 uint32_t loaded_num_clients;
209
203 Shared_Keys shared_keys_recv; 210 Shared_Keys shared_keys_recv;
204 Shared_Keys shared_keys_sent; 211 Shared_Keys shared_keys_sent;
205 212
@@ -332,6 +339,12 @@ void DHT_bootstrap(DHT *dht, IP_Port ip_port, const uint8_t *public_key);
332int DHT_bootstrap_from_address(DHT *dht, const char *address, uint8_t ipv6enabled, 339int DHT_bootstrap_from_address(DHT *dht, const char *address, uint8_t ipv6enabled,
333 uint16_t port, const uint8_t *public_key); 340 uint16_t port, const uint8_t *public_key);
334 341
342/* Start sending packets after DHT loaded_friends_list and loaded_clients_list are set.
343 *
344 * returns 0 if successful
345 * returns -1 otherwise
346 */
347int DHT_connect_after_load(DHT *dht);
335 348
336/* ROUTING FUNCTIONS */ 349/* ROUTING FUNCTIONS */
337 350