유저 삭제 루틴을 IOCP로 넘김

This commit is contained in:
2025-05-09 23:00:27 +09:00
parent 0aa312f67e
commit 74e73ccc23
3 changed files with 33 additions and 11 deletions

View File

@@ -5,6 +5,13 @@
namespace Chattr {
void ServerManager::_IOCPClient(Chattr::ThreadPool* thread, Chattr::IOCPPASSINDATA* data) {
if (data->event == IOCPEVENT::QUIT) {
if (userSocket2UID_.find(data->socket) != userSocket2UID_.end())
deleteUser(userSocket2UID_[data->socket]);
delete data;
return;
}
Chattr::Packet pack;
int packetSize = data->transferredbytes;