On Sun, 3 Feb 2019 22:35:13 -0300 silvioprog <silviop...@gmail.com> wrote:
> Hello again José, Hi Silvio, > 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. Perhaps some "signal(SIGPIPE, SIG_IGN);" is missing > 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. :-/ Yep, iov feature could be removed probably. It doesn't brings much at the end. > Anyway, it can be used as base to develop a cross-platform WS > solution to be used with MHD. I would be happy if it could be done in the context of https://gitlab.com/jobol/lmhd-ws But it is a matter of choice I know. If you want please open issues to track your features: https://gitlab.com/jobol/lmhd-ws/issues Best regards José > 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 > > > >