Loading src/event/iocp.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -324,8 +324,12 @@ namespace netplus { } // attach accepted socket to con::csock c->csock = std::make_unique<tcp>(); static_cast<tcp*>(c->csock.get())->setSocket(accepted); if(serverSock->_Type==sockettype::TCP) c->csock = std::make_unique<tcp>(accepted); else if(serverSock->_Type==sockettype::SSL) c->csock = std::make_unique<ssl>(accepted); else continue; // bind accepted socket to IOCP (key = socket*) HANDLE h = CreateIoCompletionPort((HANDLE)accepted, Loading Loading
src/event/iocp.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -324,8 +324,12 @@ namespace netplus { } // attach accepted socket to con::csock c->csock = std::make_unique<tcp>(); static_cast<tcp*>(c->csock.get())->setSocket(accepted); if(serverSock->_Type==sockettype::TCP) c->csock = std::make_unique<tcp>(accepted); else if(serverSock->_Type==sockettype::SSL) c->csock = std::make_unique<ssl>(accepted); else continue; // bind accepted socket to IOCP (key = socket*) HANDLE h = CreateIoCompletionPort((HANDLE)accepted, Loading