From 994a5db1058119409005a3874c936ed6c0b49766 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 20 Nov 2015 20:34:15 -0500 Subject: File transfer fix. --- toxcore/net_crypto.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'toxcore/net_crypto.h') 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 @@ /* Default connection ping in ms. */ #define DEFAULT_PING_CONNECTION 1000 +#define DEFAULT_TCP_PING_CONNECTION 500 typedef struct { uint64_t sent_time; @@ -156,8 +157,9 @@ typedef struct { uint64_t last_packets_left_requested_set; uint32_t last_sendqueue_size[CONGESTION_QUEUE_ARRAY_SIZE], last_sendqueue_counter; - long signed int last_num_packets_sent[CONGESTION_LAST_SENT_ARRAY_SIZE]; - uint32_t packets_sent; + long signed int last_num_packets_sent[CONGESTION_LAST_SENT_ARRAY_SIZE], + last_num_packets_resent[CONGESTION_LAST_SENT_ARRAY_SIZE]; + uint32_t packets_sent, packets_resent; uint64_t last_congestion_event; uint64_t rtt_time; -- cgit v1.2.3