diff options
| author | Nakidai <nakidai@disroot.org> | 2025-07-09 18:17:21 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-07-09 18:17:21 +0300 |
| commit | 7c625e57d8bf86196fa434fa2343c50582cdbc9e (patch) | |
| tree | 1afc167d41155eaae2a2c1544b8dc528bc275530 /config-common.h | |
| download | farsh-1.0.0.tar.gz farsh-1.0.0.zip | |
Diffstat (limited to 'config-common.h')
| -rw-r--r-- | config-common.h | 10 |
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 + |