update server

This commit is contained in:
lxsang
2017-06-05 19:09:59 +02:00
parent d0c1125702
commit 4ff6338e72
8 changed files with 277 additions and 71 deletions

View File

@ -84,6 +84,12 @@ void handler(int cl, const char* m, const char* rqp, dictionary rq)
h = ws_read_header(cl);
if(h)
{
if(h->mask == 0)
{
LOG("%s\n","Data is not mask");
write(fdm, "exit\n", 5);
return;
}
if(h->opcode == WS_CLOSE)
{
LOG("%s\n","Websocket: connection closed");