Re: [libmicrohttpd] websocket example

2019-02-02 Thread silvioprog
Hello Nicolas, I took a look at your code and it is very interesting. Maybe it could help us to create a minimal WS example to be distributed in the MHD examples. Also, I'll reuse it as base to create a very tiny layer to distribute in a library I'm maintaining. All your/José's codes will help me

Re: [libmicrohttpd] websocket example

2019-02-02 Thread silvioprog
Hello José, I couldn't test it yet, but it is in my whishlist. Thanks again for sharing it! :-) On Wed, Jan 30, 2019 at 4:17 PM José Bollo wrote: > On Tue, 29 Jan 2019 16:16:59 +0100 > Moritz Warning wrote: > > > Hi, > > > > can someone point me to an example of using websockets with > > libmi

Re: [libmicrohttpd] websocket example

2019-02-02 Thread silvioprog
Indeed. But the next messages from José and Nicolas encouraged us... :-) On Tue, Jan 29, 2019 at 6:44 PM Moritz Warning wrote: > I saw libmicrohttpd-ws, but it was not working for me. > (there is an error when I press connect on the demo site) > > Also, I do not see if this is a modified version

Re: [libmicrohttpd] websocket example

2019-02-01 Thread José Bollo
On Wed, 30 Jan 2019 16:22:00 -0300 silvioprog wrote: > Hello José, > > could we copy this example to the MHD examples? (this code was > referenced in #5501 ) Hi Silvio, Providing something in LMHD is a hard job because it has to be available on many pl

Re: [libmicrohttpd] websocket example

2019-01-30 Thread Nicolas Mora
Hello, Le 2019-01-29 10:16, Moritz Warning a écrit : can someone point me to an example of using websockets with libmicrohttpd? As others, I made an implementation of a websocket service with MHD underneath. https://github.com/babelouest/ulfius/blob/master/src/ulfius.c#L529 Mine is so ent

Re: [libmicrohttpd] websocket example

2019-01-30 Thread José Bollo
On Wed, 30 Jan 2019 16:22:00 -0300 silvioprog wrote: > Hello José, > > could we copy this example to the MHD examples? (this code was > referenced in #5501 ) IMHO it needs some rework to isolate basic features (it currently implies many dependencies). T

Re: [libmicrohttpd] websocket example

2019-01-30 Thread silvioprog
Hello José, could we copy this example to the MHD examples? (this code was referenced in #5501 ) best, On Wed, Jan 30, 2019 at 4:17 PM José Bollo wrote: > I implemented WS over LMHD. Try to pull starting from function > check_websocket_upgrade in > > h

Re: [libmicrohttpd] websocket example

2019-01-30 Thread José Bollo
On Tue, 29 Jan 2019 16:16:59 +0100 Moritz Warning wrote: > Hi, > > can someone point me to an example of using websockets with > libmicrohttpd? > > thanks, > mwarning > I implemented WS over LMHD. Try to pull starting from function check_websocket_upgrade in https://git.automotivelinux.org/sr

Re: [libmicrohttpd] websocket example

2019-01-29 Thread Moritz Warning
I saw libmicrohttpd-ws, but it was not working for me. (there is an error when I press connect on the demo site) Also, I do not see if this is a modified version of libmicrohttpd. Then there is also lib/libwebsockets/, which seems to be an additional lib. On 1/29/19 6:38 PM, silvioprog wrote: > H

Re: [libmicrohttpd] websocket example

2019-01-29 Thread silvioprog
Hi Moritz, I have interesting on it too (issued at: https://gnunet.org/bugs/view.php?id=5501). Some days ago I found an example which can be used as a start point to develop a small example: https://github.com/giovanni-liboni/libmicrohttpd-ws I don't tested it yet, but the implementation seems v