From 2cd4e7f3af2f85ad1e69f52ba22ac188f8b0626c Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 2 Dec 2023 22:21:00 +0800 Subject: [PATCH] [server] Add few functions * Add GetMessageHoleLimit() * Add GetMessagesLimit() * Add GetAcksLimit() * Add GetPlayerTimeout() * Add GetMinConnectionTime() * Add GetConnCookies() * Add GetCookieLogging() --- server/main.cpp | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/server/main.cpp b/server/main.cpp index 76d8387..d5d041e 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -81,6 +81,55 @@ BOOL WINAPI CtrlHandler(DWORD type) //---------------------------------------------------- +int GetMessageHoleLimit() +{ + return iMessageHoleLimit; +} + +//---------------------------------------------------- + +int GetMessagesLimit() +{ + return iMessagesLimit; +} + +//---------------------------------------------------- + +int GetAcksLimit() +{ + return iAcksLimit; +} + +//---------------------------------------------------- + +int GetPlayerTimeout() +{ + return iPlayerTimeout; +} + +//---------------------------------------------------- + +int GetMinConnectionTime() +{ + return iMinConnectionTime; +} + +//---------------------------------------------------- + +int GetConnCookies() +{ + return iConnCookies; +} + +//---------------------------------------------------- + +int GetCookieLogging() +{ + return iCookieLogging; +} + +//---------------------------------------------------- + void ServerPasswordChanged() { // TODO: ServerPasswordChanged