diff options
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r-- | toxcore/net_crypto.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h index 56f43cc4..0ab6446e 100644 --- a/toxcore/net_crypto.h +++ b/toxcore/net_crypto.h | |||
@@ -82,8 +82,8 @@ | |||
82 | at the dT defined in net_crypto.c */ | 82 | at the dT defined in net_crypto.c */ |
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 | /* Default connection ping in ms. */ |
86 | #define DEFAULT_PING_CONNECTION 50 | 86 | #define DEFAULT_PING_CONNECTION 200 |
87 | 87 | ||
88 | typedef struct { | 88 | typedef struct { |
89 | uint64_t sent_time; | 89 | uint64_t sent_time; |
@@ -150,6 +150,7 @@ typedef struct { | |||
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 | uint64_t last_congestion_event; |
153 | uint64_t rtt_time; | ||
153 | 154 | ||
154 | /* TCP_connection connection_number */ | 155 | /* TCP_connection connection_number */ |
155 | unsigned int connection_number_tcp; | 156 | unsigned int connection_number_tcp; |