feature: Support random or multi connection

This commit is contained in:
yuanyuanxiang
2025-06-15 04:55:14 +08:00
parent f1cf45dd3b
commit 95f808214c
12 changed files with 102 additions and 14 deletions

View File

@@ -12,6 +12,7 @@
#include <sstream>
#include <shellapi.h>
#include <corecrt_io.h>
#include "domain_pool.h"
BOOL IsProcessExit();
@@ -41,6 +42,11 @@ typedef struct ClientApp
m_bShared = shared;
g_bThreadExit = TRUE;
}
std::vector<std::string> GetSharedMasterList() {
DomainPool pool = g_Connection->ServerIP();
auto list = pool.GetIPList();
return list;
}
~ClientApp() {
SAFE_DELETE(g_Connection);
}