summaryrefslogtreecommitdiff
path: root/toxcore/DHT.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/DHT.h')
-rw-r--r--toxcore/DHT.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/toxcore/DHT.h b/toxcore/DHT.h
index b3ab5f89..ac02710f 100644
--- a/toxcore/DHT.h
+++ b/toxcore/DHT.h
@@ -50,11 +50,6 @@ typedef struct {
50 50
51typedef struct { 51typedef struct {
52 uint8_t client_id[CLIENT_ID_SIZE]; 52 uint8_t client_id[CLIENT_ID_SIZE];
53 IPPTsPng assoc;
54} Client_data_old; /* required to load old state files */
55
56typedef struct {
57 uint8_t client_id[CLIENT_ID_SIZE];
58 IPPTsPng assoc4; 53 IPPTsPng assoc4;
59 IPPTsPng assoc6; 54 IPPTsPng assoc6;
60} Client_data; 55} Client_data;
@@ -88,18 +83,6 @@ typedef struct {
88 83
89typedef struct { 84typedef struct {
90 uint8_t client_id[CLIENT_ID_SIZE]; 85 uint8_t client_id[CLIENT_ID_SIZE];
91 Client_data_old client_list[MAX_FRIEND_CLIENTS];
92
93 /* Time at which the last get_nodes request was sent. */
94 uint64_t lastgetnode;
95
96 Hardening hardening;
97 /* Symetric NAT hole punching stuff. */
98 NAT nat;
99} DHT_Friend_old; /* required to load old state files */
100
101typedef struct {
102 uint8_t client_id[CLIENT_ID_SIZE];
103 Client_data client_list[MAX_FRIEND_CLIENTS]; 86 Client_data client_list[MAX_FRIEND_CLIENTS];
104 87
105 /* Time at which the last get_nodes request was sent. */ 88 /* Time at which the last get_nodes request was sent. */
@@ -249,15 +232,6 @@ DHT *new_DHT(Net_Crypto *c);
249 232
250void kill_DHT(DHT *dht); 233void kill_DHT(DHT *dht);
251 234
252/* Load the DHT from data of size size.
253 * old/new: version of config file
254 *
255 * return -1 if failure.
256 * return 0 if success.
257 */
258int DHT_load_old(DHT *dht, uint8_t *data, uint32_t size);
259int DHT_load_new(DHT *dht, uint8_t *data, uint32_t size);
260
261/* return 0 if we are not connected to the DHT. 235/* return 0 if we are not connected to the DHT.
262 * return 1 if we are. 236 * return 1 if we are.
263 */ 237 */