summary refs log tree commit diff
path: root/config-farshd.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-farshd.h
downloadfarsh-1.0.0.tar.gz
farsh-1.0.0.zip
Add code HEAD v1.0.0 master
Diffstat (limited to 'config-farshd.h')
-rw-r--r--config-farshd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/config-farshd.h b/config-farshd.h
new file mode 100644
index 0000000..3a6e48e
--- /dev/null
+++ b/config-farshd.h
@@ -0,0 +1,14 @@
+/* server config */
+
+#define SHELL   "/bin/bash"
+#define LOGFILE "/tmp/farshd.log"
+#define MAX_PEERS 16
+#define PKT_INT 32000u /* packet sending interval in microseconds */
+
+/* ring buf size, 32kb, must be power of 2, 64kb max */
+#define RB_SZ 0x8000u
+
+/* the client is not fully connected until the server receives NOT_CONNECTED
+ * packets without the CONNECT flag */
+#define NOT_CONNECTED 8
+