summary refs log tree commit diff
path: root/config-farshd.h
diff options
context:
space:
mode:
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
+