diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/DHT.c | 6 | ||||
-rw-r--r-- | core/DHT.h | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -104,6 +104,12 @@ static Pinged send_nodes[LSEND_NODES_ARRAY]; | |||
104 | 104 | ||
105 | /*----------------------------------------------------------------------------------*/ | 105 | /*----------------------------------------------------------------------------------*/ |
106 | 106 | ||
107 | |||
108 | Client_data * DHT_get_close_list(void) | ||
109 | { | ||
110 | return close_clientlist; | ||
111 | } | ||
112 | |||
107 | /* Compares client_id1 and client_id2 with client_id | 113 | /* Compares client_id1 and client_id2 with client_id |
108 | * return 0 if both are same distance | 114 | * return 0 if both are same distance |
109 | * return 1 if client_id1 is closer | 115 | * return 1 if client_id1 is closer |
@@ -45,6 +45,8 @@ typedef struct { | |||
45 | uint64_t ret_timestamp; | 45 | uint64_t ret_timestamp; |
46 | } Client_data; | 46 | } Client_data; |
47 | 47 | ||
48 | Client_data * DHT_get_close_list(void); | ||
49 | |||
48 | /* Add a new friend to the friends list | 50 | /* Add a new friend to the friends list |
49 | client_id must be CLIENT_ID_SIZE bytes long. | 51 | client_id must be CLIENT_ID_SIZE bytes long. |
50 | returns 0 if success | 52 | returns 0 if success |