back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/server/server.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-12-09 23:06:34 +0300
committerscratko <m@scratko.xyz>2024-12-10 00:34:47 +0300
commite44cb50ab5964747d2d1369da378ceae804b85ef (patch)
treebde2a1b2cadf8c28d471855f0dc4a08d06f1cf3a /server/server.h
parentbedb024261f6539d0517430e88cfaa1e78e6e955 (diff)
downloaddurak-e44cb50ab5964747d2d1369da378ceae804b85ef.tar.gz
durak-e44cb50ab5964747d2d1369da378ceae804b85ef.tar.bz2
durak-e44cb50ab5964747d2d1369da378ceae804b85ef.zip
Added protection against botsHEADmaster
After 30 seconds a signal is sent after the first player is connected. During this period the second player must connect, otherwise the first player will be disconnected.
Diffstat (limited to 'server/server.h')
-rw-r--r--server/server.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/server.h b/server/server.h
index a62f085..3841470 100644
--- a/server/server.h
+++ b/server/server.h
@@ -7,7 +7,8 @@
enum {
max_buffer_size = 4096,
listen_qlen = 32,
- init_sess_arr_size = 12 /* it was 32 */
+ init_sess_arr_size = 12, /* it was 32 */
+ timeout = 30
};
enum {