summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-11-19 17:04:39 -0500
committerirungentoo <irungentoo@gmail.com>2015-11-19 17:04:39 -0500
commit5a800fe467a7e9b22b15db62dbd0a0f269cdb386 (patch)
treed30a7322b9a985dd55240630e80860508eb75cf2 /toxcore/net_crypto.h
parent548fafc4ddef6c60d79498d59a576bd66e6a0373 (diff)
Send queue size should not affect the speed of packets being resent.
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r--toxcore/net_crypto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index 1e118b70..cecf6df1 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -151,6 +151,10 @@ typedef struct {
151 uint32_t packets_left; 151 uint32_t packets_left;
152 uint64_t last_packets_left_set; 152 uint64_t last_packets_left_set;
153 153
154 double packet_send_rate_requested;
155 uint32_t packets_left_requested;
156 uint64_t last_packets_left_requested_set;
157
154 uint32_t last_sendqueue_size[CONGESTION_QUEUE_ARRAY_SIZE], last_sendqueue_counter; 158 uint32_t last_sendqueue_size[CONGESTION_QUEUE_ARRAY_SIZE], last_sendqueue_counter;
155 long signed int last_num_packets_sent[CONGESTION_LAST_SENT_ARRAY_SIZE]; 159 long signed int last_num_packets_sent[CONGESTION_LAST_SENT_ARRAY_SIZE];
156 uint32_t packets_sent; 160 uint32_t packets_sent;