Loading src/event/iocp.cpp +7 −5 Changes for src/event/iocp.cpp: 7 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -58,14 +58,15 @@ namespace netplus { class client { public: client(eventapi* eapi) { api = eapi; client(eventapi* eapi) : api(eapi), State(nullptr), CurCon(nullptr) { api->CreateConnetion(&CurCon); }; } ~client() { if (CurCon) { api->deleteConnetion(CurCon); }; } } HANDLE State; eventapi* api; Loading @@ -88,8 +89,9 @@ namespace netplus { HANDLE giocp2 = CreateIoCompletionPort((HANDLE)(pClientContext)->CurCon->csock->fd(), g_iocp, (ULONG_PTR)pClientContext, 0); if (!giocp2 || g_iocp != giocp2) { DWORD err = GetLastError(); NetException exp; exp[NetException::Error] << "Error occurred while AssociateWithIOCP: << GetLastError()"; exp[NetException::Error] << "AssociateWithIOCP fehlgeschlagen: Fehlercode " << err; throw exp; } } Loading Loading
src/event/iocp.cpp +7 −5 Changes for src/event/iocp.cpp: 7 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -58,14 +58,15 @@ namespace netplus { class client { public: client(eventapi* eapi) { api = eapi; client(eventapi* eapi) : api(eapi), State(nullptr), CurCon(nullptr) { api->CreateConnetion(&CurCon); }; } ~client() { if (CurCon) { api->deleteConnetion(CurCon); }; } } HANDLE State; eventapi* api; Loading @@ -88,8 +89,9 @@ namespace netplus { HANDLE giocp2 = CreateIoCompletionPort((HANDLE)(pClientContext)->CurCon->csock->fd(), g_iocp, (ULONG_PTR)pClientContext, 0); if (!giocp2 || g_iocp != giocp2) { DWORD err = GetLastError(); NetException exp; exp[NetException::Error] << "Error occurred while AssociateWithIOCP: << GetLastError()"; exp[NetException::Error] << "AssociateWithIOCP fehlgeschlagen: Fehlercode " << err; throw exp; } } Loading