Commit Graph
40 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) d63cb66783 Muted extra compiler warnings 2024-01-30 17:22:36 +01:00
Evgeniy Gavrilenko 90fcf2fc22 websocket_threaded_example: fix websocket url string
Remove extra space character from websocket url string.

The code was broken by beb7fa82 ("fix transmission stall issue with upgraded
TLS connections reported by Nguyen Xuan Viet on the mailinglist").
2023-10-19 08:27:07 +03:00
Christian Grothoff 9327a8cc46 check rvalues from MHD_add_response_header in examples 2023-09-25 21:30:03 +02:00
Christian Grothoff 2212a37256 check rvalues from pthread_mutex_ operations in examples 2023-09-25 21:26:31 +02:00
Evgeny Grin (Karlson2k) c209ce76f7 Fixed missing <errno.h> includes
While 'errno' can be defined in various headers, by standard it must
be defined in <errno.h> header.
2023-09-17 11:07:40 +03:00
Evgeny Grin (Karlson2k) dd4f6ff9ea websocket_threaded_example: fixed wrong commented-out code 2023-06-01 11:29:44 +03:00
Evgeny Grin (Karlson2k) 4adc14c948 Some readability improvements 2022-09-28 11:46:59 +03:00
Evgeny Grin (Karlson2k) 4e5bddd004 websocket_threaded_example: minor fixes 2022-06-14 20:13:46 +03:00
Evgeny Grin (Karlson2k) e583a3430f websocket_threaded_example: fixed sprintf() usage, compiler warnings 2022-06-02 17:03:31 +03:00
Evgeny Grin (Karlson2k) 0fa1c67543 websocket_threaded_example: mark function as static 2022-04-23 15:21:19 +03:00
Evgeny Grin (Karlson2k) 85775e29a9 src/examples: Fixed drop of 'const' qualifiers and minor fixes.
* some minor fixes and improvements.
2022-04-19 20:27:37 +03:00
Evgeny Grin (Karlson2k) bd41946e8f Renamed 'con_cls' -> 'req_cls' for access handler callback
The argument is actually request-specific, not connection specific. The
name was confusing.
Fixed related documentation and clarified usage.

Also fixed code where argument named 'unused' was actually used.
2022-01-18 15:18:40 +03:00
Evgeny Grin (Karlson2k) 32a10057ec Workarounds for uncrustify bugs 2021-12-09 13:51:49 +03:00
Evgeny Grin (Karlson2k) 8d50b03251 Revert formatting broken by uncrustify
This partially reverts commit dbe1d76d9c.

Looks like uncrustify has some bug resulting in C++ style comments
2021-12-09 13:33:50 +03:00
Christian Grothoff dbe1d76d9c -fix tests for libmagic (and uncrustify indentation) 2021-12-08 14:11:31 +01:00
Evgeny Grin (Karlson2k) 280fb849e0 Minor readability improvements 2021-12-01 15:05:56 +03:00
Evgeny Grin (Karlson2k) 87ab1ec7f7 test and examples: check socket control functions results 2021-11-21 15:43:19 +03:00
Evgeny Grin (Karlson2k) 0b9d6e9446 Examples: fixed blocking sockets on W32
Sockets on W32 were non-blocking due to copy-paste errors.
2021-11-21 15:43:13 +03:00
Evgeny Grin (Karlson2k) f44e4bf896 websockets: fixed code style 2021-10-31 16:34:49 +03:00
Evgeny Grin (Karlson2k) 18c2ad66c7 websocket_threaded_example: fixed compiler warning on x32 platforms 2021-10-24 11:24:07 +03:00
Evgeny Grin (Karlson2k) 1a17440608 Muted sanitizer errors on W32 platform.
Actually MinGW headers need to be fixed.
2021-10-06 11:30:42 +03:00
Evgeny Grin (Karlson2k) 09c4a22975 websocket_threaded_example: fix static analyzer error 2021-08-25 20:50:07 +03:00
Evgeny Grin (Karlson2k) 81beb04105 websocket_threaded_example: muted compiler warning 2021-04-01 21:33:47 +03:00
Evgeny Grin (Karlson2k) 2da6d2d800 Fixed analyzer warning 2020-12-27 20:10:32 +03:00
Evgeny Grin (Karlson2k) f53db2892e Muted compiler warnings 2020-12-27 17:35:49 +03:00
Evgeny Grin (Karlson2k) 1d5efc0349 Examples: fixed logic error 2020-12-25 20:17:59 +03:00
Evgeny Grin (Karlson2k) fb283746eb examples: fixed portability and compiler warnings 2020-12-24 15:35:25 +03:00
Evgeny Grin (Karlson2k) 5c659994bf examples: fixed wrong array initialisation 2020-12-24 15:27:55 +03:00
Evgeny Grin (Karlson2k) a3b6d06f32 Fix for ee18f2421a 2020-10-29 19:26:23 +03:00
Evgeny Grin (Karlson2k) ee18f2421a Fixed 2f4438ab7a 2020-10-29 18:59:25 +03:00
Evgeny Grin (Karlson2k) 2f4438ab7a websocket_threaded_example.c: minor improvement and warning fixes 2020-10-29 18:41:12 +03:00
Christian Grothoff beb7fa828c fix transmission stall issue with upgraded TLS connections reported by Nguyen Xuan Viet on the mailinglist 2020-09-27 22:12:13 +02:00
silvioprog f4be5e0154 Avoid item duplication inside client list in the websocket example. 2020-04-10 14:05:57 -03:00
silvioprog 08134cf85a Fixed websocket example. 2020-04-10 13:50:12 -03:00
silvioprog 275d6fed80 Fixed compiler warnings. 2020-04-09 23:54:28 -03:00
silvioprog 61227ed72d Fixed warnings related to websocket example. 2020-04-08 20:23:01 -03:00
Christian Grothoff aad7796a51 define and use 'enum MHD_Result' (merge) 2020-04-08 23:42:52 +02:00
silvioprog da0585902c Improved base64-encoder function of the websocket example. 2020-04-08 14:10:43 -03:00
silvioprog 2de4ad4caf Improved websocket example allowing the client to connect to the remote host. 2020-04-08 13:51:09 -03:00
silvioprog 68200a8426 Added example for how to provide a tiny threaded websocket server. (#5501) 2020-04-07 15:00:56 -03:00