IOCPClient: Replace CBuffer as local variable

This commit is contained in:
yuanyuanxiang
2025-07-13 15:52:19 +08:00
parent b4c2ed236e
commit 46eb31a50c
3 changed files with 22 additions and 25 deletions

View File

@@ -9,7 +9,6 @@
#include <numeric>
#include <ctime>
#include <chrono>
#include <assert.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
@@ -591,7 +590,6 @@ public:
char buf[17] = { 0 };
std::strncpy(buf, admin, 16);
superAdmin = std::strtoull(buf, NULL, 16);
assert(superAdmin == 7057226198541618915);
}
int GetHeaderEncType() const {
return superAdmin == 7057226198541618915 ? iHeaderEnc : 0;