summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r--toxcore/net_crypto.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index cecf6df1..64caf9ad 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -85,6 +85,7 @@
85 85
86/* Default connection ping in ms. */ 86/* Default connection ping in ms. */
87#define DEFAULT_PING_CONNECTION 1000 87#define DEFAULT_PING_CONNECTION 1000
88#define DEFAULT_TCP_PING_CONNECTION 500
88 89
89typedef struct { 90typedef struct {
90 uint64_t sent_time; 91 uint64_t sent_time;
@@ -156,8 +157,9 @@ typedef struct {
156 uint64_t last_packets_left_requested_set; 157 uint64_t last_packets_left_requested_set;
157 158
158 uint32_t last_sendqueue_size[CONGESTION_QUEUE_ARRAY_SIZE], last_sendqueue_counter; 159 uint32_t last_sendqueue_size[CONGESTION_QUEUE_ARRAY_SIZE], last_sendqueue_counter;
159 long signed int last_num_packets_sent[CONGESTION_LAST_SENT_ARRAY_SIZE]; 160 long signed int last_num_packets_sent[CONGESTION_LAST_SENT_ARRAY_SIZE],
160 uint32_t packets_sent; 161 last_num_packets_resent[CONGESTION_LAST_SENT_ARRAY_SIZE];
162 uint32_t packets_sent, packets_resent;
161 uint64_t last_congestion_event; 163 uint64_t last_congestion_event;
162 uint64_t rtt_time; 164 uint64_t rtt_time;
163 165