diff options
author | irungentoo <irungentoo@gmail.com> | 2015-05-17 18:41:02 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-05-17 18:41:02 -0400 |
commit | 8760aba257b5f96d082a58abbc9fb4ca2dd73638 (patch) | |
tree | c05b001781c69cbedc9c005ffa859772dd18e3d3 /toxcore/net_crypto.h | |
parent | e3ee9702fb296b966acb55b802e9e799bce490bd (diff) |
Some protocol efficiency improvements.
Reduced the amount of waste from dropped packets.
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r-- | toxcore/net_crypto.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h index 508d2a1c..c9e6d23a 100644 --- a/toxcore/net_crypto.h +++ b/toxcore/net_crypto.h | |||
@@ -83,7 +83,7 @@ | |||
83 | #define CONGESTION_QUEUE_ARRAY_SIZE 24 | 83 | #define CONGESTION_QUEUE_ARRAY_SIZE 24 |
84 | 84 | ||
85 | /* Connection ping in ms. TODO: calculate it per connection. */ | 85 | /* Connection ping in ms. TODO: calculate it per connection. */ |
86 | #define DEFAULT_PING_CONNECTION 100 | 86 | #define DEFAULT_PING_CONNECTION 50 |
87 | 87 | ||
88 | typedef struct { | 88 | typedef struct { |
89 | uint64_t sent_time; | 89 | uint64_t sent_time; |
@@ -149,6 +149,7 @@ typedef struct { | |||
149 | uint32_t last_sendqueue_size[CONGESTION_QUEUE_ARRAY_SIZE], last_sendqueue_counter; | 149 | uint32_t last_sendqueue_size[CONGESTION_QUEUE_ARRAY_SIZE], last_sendqueue_counter; |
150 | long signed int last_num_packets_sent[CONGESTION_QUEUE_ARRAY_SIZE]; | 150 | long signed int last_num_packets_sent[CONGESTION_QUEUE_ARRAY_SIZE]; |
151 | uint32_t packets_sent; | 151 | uint32_t packets_sent; |
152 | uint64_t last_congestion_event; | ||
152 | 153 | ||
153 | /* TCP_connection connection_number */ | 154 | /* TCP_connection connection_number */ |
154 | unsigned int connection_number_tcp; | 155 | unsigned int connection_number_tcp; |