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.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index b3964064..b06fcb10 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -26,8 +26,6 @@
26 26
27#include "DHT.h" 27#include "DHT.h"
28 28
29#define CRYPTO_HANDSHAKE_TIMEOUT (CONNECTION_TIMEOUT * 2)
30
31#define CRYPTO_CONN_NO_CONNECTION 0 29#define CRYPTO_CONN_NO_CONNECTION 0
32#define CRYPTO_CONN_COOKIE_REQUESTING 1 //send cookie request packets 30#define CRYPTO_CONN_COOKIE_REQUESTING 1 //send cookie request packets
33#define CRYPTO_CONN_HANDSHAKE_SENT 2 //send handshake packets 31#define CRYPTO_CONN_HANDSHAKE_SENT 2 //send handshake packets
@@ -104,7 +102,7 @@ typedef struct {
104 void *connection_data_callback_object; 102 void *connection_data_callback_object;
105 int connection_data_callback_id; 103 int connection_data_callback_id;
106 104
107 uint64_t last_data_packet_sent; 105 uint64_t last_request_packet_sent;
108 106
109 uint32_t packet_counter; 107 uint32_t packet_counter;
110} Crypto_Connection; 108} Crypto_Connection;