Hello again José, I tried the library on Linux and Windows. On Linux, it works, i.e., the client sends text to the server, the only problem I've found was that Ctrl+C in the client closes the server too, but a server shouldn't be closed by a client. On Windows (latest mingw-w64 <http://www.msys2.org>), I couldn't compile it. I've got some errors like "array type has incomplete element type 'struct iovec'", "'F_SETFL' undeclared", "'O_NONBLOCK' undeclared", maybe by missing symbols specific from Linux that aren't present on Windows. I've tried to solve it, but it is a little bit hard to be solved, and IIUC, the library would use IOCP on Windows, but I'm not familiar with that. :-/
Anyway, it can be used as base to develop a cross-platform WS solution to be used with MHD. Thank you! On Sun, Feb 3, 2019 at 12:56 AM silvioprog <silviop...@gmail.com> wrote: > Hello José, > > first, thanks for this awesome work! I took a look at the sources and it > seems very clean. I'll test it on Windows. I saw you did the client too, so > it will be very helpful for who those want to study WS. > > But, I have two questions: is it very difficult to do a minimal WS example > to distribute in the MHD examples? If so, will mark the #5501 > <https://gnunet.org/bugs/view.php?id=5501> as 'won't fix' and close the > issue. The other question is if it could be used as dependency in a library > under LGPL license. > > Once more, thank you very much for sharing it! ☺ > > On Fri, Feb 1, 2019 at 3:57 PM José Bollo <jo...@nonadev.net> wrote: > >> I am proud to share with you a tiny implementation of websocket with >> libmicrohttpd. >> >> You can find it there: >> >> https://gitlab.com/jobol/lmhd-ws >> >> I tried to give something small and useful (based on some previous work >> I made). >> >> It is not perfect so feedback are welcome. Especially I only work on >> linux. People on Mac or BSD are welcome to submit issues or pull >> requests. People of windows also of course. >> >> Best regards >> José Bollo > > > -- > Silvio Clécio > -- Silvio Clécio