diff options
Diffstat (limited to 'core/DHT.h')
-rw-r--r-- | core/DHT.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -39,13 +39,13 @@ typedef struct { | |||
39 | IP_Port ip_port; | 39 | IP_Port ip_port; |
40 | uint64_t timestamp; | 40 | uint64_t timestamp; |
41 | uint64_t last_pinged; | 41 | uint64_t last_pinged; |
42 | 42 | ||
43 | /* Returned by this node. Either our friend or us */ | 43 | /* Returned by this node. Either our friend or us */ |
44 | IP_Port ret_ip_port; | 44 | IP_Port ret_ip_port; |
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); | 48 | Client_data *DHT_get_close_list(void); |
49 | 49 | ||
50 | /* Add a new friend to the friends list | 50 | /* Add a new friend to the friends list |
51 | client_id must be CLIENT_ID_SIZE bytes long. | 51 | client_id must be CLIENT_ID_SIZE bytes long. |
@@ -80,7 +80,7 @@ void DHT_bootstrap(IP_Port ip_port, uint8_t *public_key); | |||
80 | and are then removed from the list. | 80 | and are then removed from the list. |
81 | if the list is full the nodes farthest from our client_id are replaced | 81 | if the list is full the nodes farthest from our client_id are replaced |
82 | the purpose of this list is to enable quick integration of new nodes into the | 82 | the purpose of this list is to enable quick integration of new nodes into the |
83 | network while preventing amplification attacks. | 83 | network while preventing amplification attacks. |
84 | return 0 if node was added | 84 | return 0 if node was added |
85 | return -1 if node was not added */ | 85 | return -1 if node was not added */ |
86 | int add_toping(uint8_t *client_id, IP_Port ip_port); | 86 | int add_toping(uint8_t *client_id, IP_Port ip_port); |
@@ -123,7 +123,7 @@ int DHT_load(uint8_t *data, uint32_t size); | |||
123 | returns 1 if we are */ | 123 | returns 1 if we are */ |
124 | int DHT_isconnected(); | 124 | int DHT_isconnected(); |
125 | 125 | ||
126 | void addto_lists(IP_Port ip_port, uint8_t * client_id); | 126 | void addto_lists(IP_Port ip_port, uint8_t *client_id); |
127 | 127 | ||
128 | #ifdef __cplusplus | 128 | #ifdef __cplusplus |
129 | } | 129 | } |