libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Update for websocket library


From: Markus Doppelbauer
Subject: Re: [libmicrohttpd] Update for websocket library
Date: Sun, 17 Oct 2021 23:04:05 +0200
User-agent: Evolution 3.36.5-0ubuntu1

Since a websocket handshake hashes only 16 bytes you don't need an 
implementation that provides incremental updates. The attached SHA1
is slower than the openssl implementation, but quite short.
Just in case.


-------- Weitergeleitete Nachricht --------
Von: "Gausmann, David" <david.gausmann@measx.com>
Antwort an: libmicrohttpd development and user mailinglist <libmicrohttpd@gnu.org>
An: libmicrohttpd@gnu.org <libmicrohttpd@gnu.org>
Betreff: [libmicrohttpd] Update for websocket library
Datum: Sun, 17 Oct 2021 18:20:17 +0000

Hi @all,

some months ago I wrote an additional library for libmicrohttpd to add support for the websocket protocol.
Christian and Evgeny added that library with the configure flag “--with-experimental”.
There were still some tasks to do, but now I am finally done with them.

In the attachment you find the patch file, which must be applied to get the final version of the API.

For short it contains the following changes:
- added API documentation to libmicrohttpd.texi
- added websocket tutorial chapter to libmicrohttpd-tutorial and an much easier example for the tutorial
- added additional helper functions to ease the HTTP websocket handshake
- the code can now be compiled on Linux without errors :-)
- changed sha1.c and sha1.h to the files provided by Evgeny (I replaced those files in src/microhttpd_ws/ with the files from src/microhttpd/ - maybe there is a smarter way...?)
- removed dependency for "htons" and "htonl" (these functions are now implemented in MHD_websocket.c; no need for OS-dependent files anymore)
- added an additional test script for testing of the library with any webbrowser (for manual practice test)
- several bugfixes
- parameters renamed
- special things clarified (fragmentation, RNG for client mode)

The new version of the API is at some points incompatible with the old version, but since it was in an experimental phase and it didn't compile on Linux, I guess this shouldn't bother anyone.
From my point of view, I am now finished with the library and it could go out of experimental.
Maybe it would be good if anyone could give it a review.


Kind Regards
David Gausmann


measX GmbH & Co. KG

David Gausmann
Fachinformatiker Anwendungsentwicklung |  Testdatenmanagement und Auswertesysteme
Büro: Aachen (Pascalstraße 67, 52076 Aachen-Oberforstbach)
Telefon: +49 (0) 2166 9520-170
E-Mail:  
david.gausmann@measx.com
 | Web: 
https://www.measx.com



measX GmbH & Co. KG | Trompeterallee 110 | 41189 Mönchengladbach | Germany | Telefon: +49 (0) 2166 9520-0 | Fax: +49 (0) 2166 9520-20
Sitz der Gesellschaft: Mönchengladbach | Registergericht: AG Mönchengladbach (HRA 5623) |  USt-IdNr: DE 814281560
Geschäftsführer: Dr. Joachim Hilsmann | Stadtsparkasse Mönchengladbach IBAN: DE84310500000000276600 | BIC-Swift: MG LS DE 33
Persönlich haftende Gesellschafterin: measX Verwaltungsgesellschaft mbH | Registergericht: AG Mönchengladbach (HRB 10947)
__________________________________________________________________________________________________________________

Attachment: sha1.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]