summary refs log tree commit diff
path: root/config-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'config-common.h')
-rw-r--r--config-common.h10
1 files changed, 10 insertions, 0 deletions
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
+