diff options
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r-- | toxcore/net_crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h index bd00a3fe..ec55bf6f 100644 --- a/toxcore/net_crypto.h +++ b/toxcore/net_crypto.h | |||
@@ -62,7 +62,7 @@ | |||
62 | #define MAX_NUM_SENDPACKET_TRIES 8 | 62 | #define MAX_NUM_SENDPACKET_TRIES 8 |
63 | 63 | ||
64 | /* The timeout of no received UDP packets before the direct UDP connection is considered dead. */ | 64 | /* The timeout of no received UDP packets before the direct UDP connection is considered dead. */ |
65 | #define UDP_DIRECT_TIMEOUT ((MAX_NUM_SENDPACKET_TRIES * CRYPTO_SEND_PACKET_INTERVAL) / 1000) | 65 | #define UDP_DIRECT_TIMEOUT 8 |
66 | 66 | ||
67 | #define PACKET_ID_PADDING 0 /* Denotes padding */ | 67 | #define PACKET_ID_PADDING 0 /* Denotes padding */ |
68 | #define PACKET_ID_REQUEST 1 /* Used to request unreceived packets */ | 68 | #define PACKET_ID_REQUEST 1 /* Used to request unreceived packets */ |