Commit 79e38132 authored by jan.koester's avatar jan.koester
Browse files

test

parent 2e29c71a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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,