[Libwebsockets] lws_vhost from lws_context struct

Maarten Hoeben hamster at xs4all.nl
Mon May 13 11:05:07 CEST 2019


Ok, thanks for the quick response. I will use that solution.

> You can handle this by telling lws to just create the context without any vhost
> 
> https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/http-server/minimal-http-server-multivhost/minimal-http-server.c#n110
> 
> and then create the vhost(s) explicitly, you can use the same info struct.
> 
> https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/http-server/minimal-http-server-multivhost/minimal-http-server.c#n135-143
> 
> this lets you get pointers for n vhosts, not just the default one.
> 
> -Andy




More information about the Libwebsockets mailing list