libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] tiny websocket above LMHD


From: silvioprog
Subject: Re: [libmicrohttpd] tiny websocket above LMHD
Date: Sun, 3 Feb 2019 22:35:13 -0300

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), 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 <address@hidden> 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 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 <address@hidden> 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

reply via email to

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