summaryrefslogtreecommitdiff
path: root/ws.c
Commit message (Collapse)AuthorAgeFilesLines
* ws: ignore case while comparing values of Upgrade/Connection headersAzat Khuzhin2022-11-121-2/+2
| | | | | Cc: @widgetii Fixes: #1373
* ws: fix compile error on centos 7 - very old compiler (#1359)Leon George2022-10-231-1/+2
| | | | | | | | | | | | | | * http: fix typo * ws: fix comile error On CentOS: CC ws.lo ws.c: In function 'get_ws_frame': ws.c:244:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < payload_len; i++) { ^ ws.c:244:3: note: use option -std=c99 or -std=gnu99 to compile your code
* Remove bad copy-pasteDmitry Ilyin2022-10-121-1/+0
|
* Add locks for server WS, fixes #1357Dmitry Ilyin2022-10-121-4/+23
|
* Fix conflict with SHA1 function from opensslDmitry Ilyin2022-09-141-1/+1
|
* Add minimal WebSocket server implementation for evhttp (#1322)Dmitry Ilyin2022-09-121-0/+439
This adds few functions to use evhttp-based webserver to handle incoming WebSockets connections. We've tried to use both libevent and libwebsockets in our application, but found that we need to have different ports at the same time to handle standard HTTP and WebSockets traffic. This change can help to stick only with libevent library. Implementation was inspired by modified Libevent source code in ipush project [1]. [1]: https://github.com/sqfasd/ipush/tree/master/deps/libevent-2.0.21-stable Also, WebSocket-based chat server was added as a sample.