summary refs log tree commit diff
path: root/config-farsh.h
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-07-09 18:17:21 +0300
committerNakidai <nakidai@disroot.org>2025-07-09 18:17:21 +0300
commit7c625e57d8bf86196fa434fa2343c50582cdbc9e (patch)
tree1afc167d41155eaae2a2c1544b8dc528bc275530 /config-farsh.h
downloadfarsh-1.0.0.tar.gz
farsh-1.0.0.zip
Add code HEAD v1.0.0 master
Diffstat (limited to 'config-farsh.h')
-rw-r--r--config-farsh.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/config-farsh.h b/config-farsh.h
new file mode 100644
index 0000000..4465b31
--- /dev/null
+++ b/config-farsh.h
@@ -0,0 +1,8 @@
+/* client config */
+
+#define DISCONNECT_KEY '~' /* press ESC and this key to disconnect */
+#define PKT_INT 24000u     /* packet sending interval in microseconds */
+#define RB_SZ 0x1000u /* ring buf size, 4kb, must be power of 2, 64kb max */
+#define TIMEOUT_P 10  /* timeout (no packets) in seconds for send ping */
+#define TIMEOUT_C 5   /* connection timeout in seconds */
+