From 7c625e57d8bf86196fa434fa2343c50582cdbc9e Mon Sep 17 00:00:00 2001 From: Nakidai Date: Wed, 9 Jul 2025 18:17:21 +0300 Subject: Add code --- config-farshd.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 config-farshd.h (limited to 'config-farshd.h') 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 + -- cgit 1.4.1