diff options
author | irungentoo <irungentoo@gmail.com> | 2015-07-29 22:39:56 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-07-29 22:39:56 -0400 |
commit | dfc154cc9e55c91ed9eba7e995ee560688c1eac5 (patch) | |
tree | 19e1d7e0296be426933331b8bb8802b17ab5f738 /toxcore/ping.h | |
parent | c989c246ead878f14ca889d5533f6bd2dad7408a (diff) |
client_id -> public_key
Diffstat (limited to 'toxcore/ping.h')
-rw-r--r-- | toxcore/ping.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/ping.h b/toxcore/ping.h index c19c912a..904ad844 100644 --- a/toxcore/ping.h +++ b/toxcore/ping.h | |||
@@ -29,19 +29,19 @@ typedef struct PING PING; | |||
29 | /* Add nodes to the to_ping list. | 29 | /* Add nodes to the to_ping list. |
30 | * All nodes in this list are pinged every TIME_TOPING seconds | 30 | * All nodes in this list are pinged every TIME_TOPING seconds |
31 | * and are then removed from the list. | 31 | * and are then removed from the list. |
32 | * If the list is full the nodes farthest from our client_id are replaced. | 32 | * If the list is full the nodes farthest from our public_key are replaced. |
33 | * The purpose of this list is to enable quick integration of new nodes into the | 33 | * The purpose of this list is to enable quick integration of new nodes into the |
34 | * network while preventing amplification attacks. | 34 | * network while preventing amplification attacks. |
35 | * | 35 | * |
36 | * return 0 if node was added. | 36 | * return 0 if node was added. |
37 | * return -1 if node was not added. | 37 | * return -1 if node was not added. |
38 | */ | 38 | */ |
39 | int add_to_ping(PING *ping, const uint8_t *client_id, IP_Port ip_port); | 39 | int add_to_ping(PING *ping, const uint8_t *public_key, IP_Port ip_port); |
40 | void do_to_ping(PING *ping); | 40 | void do_to_ping(PING *ping); |
41 | 41 | ||
42 | PING *new_ping(DHT *dht); | 42 | PING *new_ping(DHT *dht); |
43 | void kill_ping(PING *ping); | 43 | void kill_ping(PING *ping); |
44 | 44 | ||
45 | int send_ping_request(PING *ping, IP_Port ipp, const uint8_t *client_id); | 45 | int send_ping_request(PING *ping, IP_Port ipp, const uint8_t *public_key); |
46 | 46 | ||
47 | #endif /* __PING_H__ */ | 47 | #endif /* __PING_H__ */ |