From ed8b3286733343cfa06d0f1ab1834e35d3212777 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 1 Apr 2023 12:56:14 +0200 Subject: [PATCH] created WHY2_COMMUNICATION_TIME macro --- include/chat/flags.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/chat/flags.h b/include/chat/flags.h index 83a6ed6..281e0ff 100644 --- a/include/chat/flags.h +++ b/include/chat/flags.h @@ -19,11 +19,12 @@ along with this program. If not, see . #ifndef WHY2_CHAT_COMMON_H #define WHY2_CHAT_COMMON_H -//DEFINES +//MACROS #define WHY2_SA struct sockaddr -#define WHY2_SERVER_PORT 1204 -#define WHY2_MAX_CONNECTIONS 1000 +#define WHY2_SERVER_PORT 1204 //PORT +#define WHY2_MAX_CONNECTIONS 1000 //MAX USERS CONNECTED AT ONE TIME +#define WHY2_COMMUNICATION_TIME 300 //SECONDS WAITING BEFORE KICKING USER (TIMEOUT) -#define WHY2_CLEAR_AND_GO_UP "\33[2K\r\033[A" +#define WHY2_CLEAR_AND_GO_UP "\33[2K\r\033[A" //i mean read the name #endif \ No newline at end of file