summaryrefslogtreecommitdiff
path: root/toxcore/onion_client.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-05-19 10:57:56 -0400
committerirungentoo <irungentoo@gmail.com>2014-05-19 10:57:56 -0400
commit116f3d46e89ce2741b6823707a2d60cd70b093c9 (patch)
tree771efecd04400b068abe0399b6ba4fd2379bc128 /toxcore/onion_client.h
parent207e87187d61b02098ae548426f84c6cce515525 (diff)
Removed now useless code.
Diffstat (limited to 'toxcore/onion_client.h')
-rw-r--r--toxcore/onion_client.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/toxcore/onion_client.h b/toxcore/onion_client.h
index 0d2e84a5..9cf6cf3e 100644
--- a/toxcore/onion_client.h
+++ b/toxcore/onion_client.h
@@ -44,11 +44,6 @@
44#define ONION_PATH_TIMEOUT 30 44#define ONION_PATH_TIMEOUT 30
45#define ONION_PATH_MAX_LIFETIME 600 45#define ONION_PATH_MAX_LIFETIME 600
46 46
47/* A cheap way of making it take less bandwidth at startup:
48 by limiting the number of ping packets we can send per
49 second per peer. */
50#define MAX_PING_NODES_SECOND_PEER 5
51
52#define MAX_STORED_PINGED_NODES 9 47#define MAX_STORED_PINGED_NODES 9
53#define MIN_NODE_PING_TIME 10 48#define MIN_NODE_PING_TIME 10
54 49
@@ -98,7 +93,6 @@ typedef struct {
98 uint64_t last_seen; 93 uint64_t last_seen;
99 94
100 Onion_Client_Paths onion_paths; 95 Onion_Client_Paths onion_paths;
101 uint32_t ping_nodes_sent_second;
102 96
103 Last_Pinged last_pinged[MAX_STORED_PINGED_NODES]; 97 Last_Pinged last_pinged[MAX_STORED_PINGED_NODES];
104 uint8_t last_pinged_index; 98 uint8_t last_pinged_index;
@@ -127,8 +121,6 @@ typedef struct {
127 uint8_t temp_public_key[crypto_box_PUBLICKEYBYTES]; 121 uint8_t temp_public_key[crypto_box_PUBLICKEYBYTES];
128 uint8_t temp_secret_key[crypto_box_SECRETKEYBYTES]; 122 uint8_t temp_secret_key[crypto_box_SECRETKEYBYTES];
129 123
130 uint32_t ping_nodes_sent_second;
131
132 Last_Pinged last_pinged[MAX_STORED_PINGED_NODES]; 124 Last_Pinged last_pinged[MAX_STORED_PINGED_NODES];
133 125
134 Ping_Array announce_ping_array; 126 Ping_Array announce_ping_array;