layout: Refactor the socket server code

This commit is contained in:
yuanyuanxiang
2025-06-30 04:35:38 +08:00
parent 017a8c8fa2
commit 3e5d45df6b
28 changed files with 259 additions and 221 deletions

View File

@@ -51,7 +51,7 @@ void IOCPUDPServer::PostRecv() {
AddCount(1);
CONTEXT_OBJECT* ctx = new CONTEXT_OBJECT();
ctx->InitMember(m_socket);
ctx->InitMember(m_socket, this);
IO_CONTEXT* ioCtx = new IO_CONTEXT();
ZeroMemory(&ioCtx->ol, sizeof(OVERLAPPED));