From e44cb50ab5964747d2d1369da378ceae804b85ef Mon Sep 17 00:00:00 2001 From: scratko Date: Mon, 9 Dec 2024 23:06:34 +0300 Subject: Added protection against bots 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. --- server/server.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/server.h') 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 { -- cgit v1.2.3