From 7c625e57d8bf86196fa434fa2343c50582cdbc9e Mon Sep 17 00:00:00 2001 From: Nakidai Date: Wed, 9 Jul 2025 18:17:21 +0300 Subject: Add code --- config-common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 config-common.h (limited to 'config-common.h') diff --git a/config-common.h b/config-common.h new file mode 100644 index 0000000..64c1840 --- /dev/null +++ b/config-common.h @@ -0,0 +1,10 @@ +/* common config */ + +#define PASSWORD_BUF_SZ 512 /* 256 russian utf8 chars */ +#define MAX_PKT_SZ 1024 +#define TIMEOUT_D 180 /* timeout (no packets) in seconds for disconnect */ + +/* send packet every X microseconds, where + * PKT_INT >= X >= PKT_INT - MIN_SLEEP */ +#define MIN_SLEEP 3000 + -- cgit 1.4.1