iocp 완성

This commit is contained in:
2025-05-02 12:05:57 +09:00
parent 14c325c428
commit 40d522e755
6 changed files with 24 additions and 18 deletions

View File

@@ -27,6 +27,7 @@ public:
int retVal = GetQueuedCompletionStatus(completionPort_, &cbTransfrred, (PULONG_PTR)&sock, (LPOVERLAPPED*)&data, INFINITE);
if (retVal == 0 || cbTransfrred == 0) {
spdlog::info("Client disconnected. [{}]", (std::string)(data->socket.remoteAddr));
delete data;
threadPool->enqueueJob(iocpWather, completionPort_, callback);
return;
}

View File

@@ -16,6 +16,7 @@ public:
operator SOCKET();
void set(const SOCKET __sock, int __domain);
int setsockopt(int level, int optname, const char FAR* optval, int optlen);
int bind(Address __addr);