.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@11338 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-09-21 16:47:34 +00:00
parent 6ce89b3764
commit ec50aea5d4
4 changed files with 3 additions and 16 deletions

View file

@ -66,10 +66,11 @@ CONSOLE_APP_MAIN
LOG("WebSocket closed, current count: " << worker.GetCount());
}
}
if(sel[0])
if(sel[0]) {
if(!worker.Add().ws.NonBlocking().Accept(server))
worker.Drop();
else
LOG("WebSocket accepted, current count: " << worker.GetCount());
}
}
}

View file

@ -7,7 +7,7 @@ using namespace Upp;
void ClientEmulation()
{
Thread::Start([] {
#if 0 // change to 1 to dome single request
#if 0 // change to 1 to do single request
Sleep(500);
WebSocket ws;
ws.Connect("ws://127.0.0.1:12321");

View file

@ -1,7 +0,0 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
}

View file

@ -1,7 +0,0 @@
uses Core;
file
Client.cpp;
mainconfig
"" = "";