summaryrefslogtreecommitdiff
path: root/core/DHT.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-16 13:11:09 -0400
committerirungentoo <irungentoo@gmail.com>2013-08-16 13:11:09 -0400
commit88ff81d9def5efe69cbaf91aa41906177ba7dde9 (patch)
treecb9f149e438bcd1f18d8c1eb5d8be6b0a22f58a4 /core/DHT.h
parentc5af8f44a9d040a0bbe0442ec074d9fc8562dd32 (diff)
Passed everything through astyle.
Diffstat (limited to 'core/DHT.h')
-rw-r--r--core/DHT.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/DHT.h b/core/DHT.h
index c6ca4ce1..8cb0436a 100644
--- a/core/DHT.h
+++ b/core/DHT.h
@@ -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
48Client_data * DHT_get_close_list(void); 48Client_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 */
86int add_toping(uint8_t *client_id, IP_Port ip_port); 86int 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 */
124int DHT_isconnected(); 124int DHT_isconnected();
125 125
126void addto_lists(IP_Port ip_port, uint8_t * client_id); 126void addto_lists(IP_Port ip_port, uint8_t *client_id);
127 127
128#ifdef __cplusplus 128#ifdef __cplusplus
129} 129}