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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index 054dbb5d..ebbfb8d3 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -55,6 +55,9 @@
55 before giving up. */ 55 before giving up. */
56#define MAX_NUM_SENDPACKET_TRIES 8 56#define MAX_NUM_SENDPACKET_TRIES 8
57 57
58/* The timeout of no recieved UDP packets before the direct UDP connection is considered dead. */
59#define UDP_DIRECT_TIMEOUT (MAX_NUM_SENDPACKET_TRIES * CRYPTO_SEND_PACKET_INTERVAL * 2)
60
58#define PACKET_ID_PADDING 0 61#define PACKET_ID_PADDING 0
59#define PACKET_ID_REQUEST 1 62#define PACKET_ID_REQUEST 1
60#define PACKET_ID_KILL 2 63#define PACKET_ID_KILL 2