Loading src/event/iocp.cpp +4 −4 Changes for src/event/iocp.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. namespace netplus { bool RUNNING=true; bool WINAPI ConsoleHandler(DWORD event) { BOOL WINAPI ConsoleHandler(DWORD event) { switch (event) { case CTRL_C_EVENT: RUNNING=false; Loading Loading @@ -215,7 +215,7 @@ namespace netplus { public: EventWorker(int tid, ULONG_PTR args, EventWorkerArgs* eargs) { for (RUNNING) { while (RUNNING) { OVERLAPPED* pOverlapped = nullptr; ULONG_PTR lpContext = 0; DWORD dwBytesTransfered = 0; Loading Loading @@ -313,7 +313,7 @@ namespace netplus { NetException exception; EventWorkerArgs eargs; if (!SetConsoleCtrlHandler(ConsoleHandler, true)) { if (!SetConsoleCtrlHandler(ConsoleHandler, TRUE)) { NetException exp; exp[NetException::Critical] << "event: runEventloop couldn't create ConsoleHandler !"; throw exp; Loading Loading @@ -384,7 +384,7 @@ namespace netplus { throw exp; } for (RUNNING) { while (RUNNING) { // This is the correct blocking call. It waits for the g_hAcceptEvent to be signaled. DWORD dwResult = WSAWaitForMultipleEvents(1, &g_hAcceptEvent, FALSE, WSA_INFINITE, FALSE); Loading Loading
src/event/iocp.cpp +4 −4 Changes for src/event/iocp.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. namespace netplus { bool RUNNING=true; bool WINAPI ConsoleHandler(DWORD event) { BOOL WINAPI ConsoleHandler(DWORD event) { switch (event) { case CTRL_C_EVENT: RUNNING=false; Loading Loading @@ -215,7 +215,7 @@ namespace netplus { public: EventWorker(int tid, ULONG_PTR args, EventWorkerArgs* eargs) { for (RUNNING) { while (RUNNING) { OVERLAPPED* pOverlapped = nullptr; ULONG_PTR lpContext = 0; DWORD dwBytesTransfered = 0; Loading Loading @@ -313,7 +313,7 @@ namespace netplus { NetException exception; EventWorkerArgs eargs; if (!SetConsoleCtrlHandler(ConsoleHandler, true)) { if (!SetConsoleCtrlHandler(ConsoleHandler, TRUE)) { NetException exp; exp[NetException::Critical] << "event: runEventloop couldn't create ConsoleHandler !"; throw exp; Loading Loading @@ -384,7 +384,7 @@ namespace netplus { throw exp; } for (RUNNING) { while (RUNNING) { // This is the correct blocking call. It waits for the g_hAcceptEvent to be signaled. DWORD dwResult = WSAWaitForMultipleEvents(1, &g_hAcceptEvent, FALSE, WSA_INFINITE, FALSE); Loading