[Libwebsockets] How to add virtual host dynamic
chropinhu at gmail.com
Fri May 4 11:16:14 CEST 2018
I am looking for the way to add virtual host dynamically.
I have referenced to the implement of lwsws.
For the lwsws case, the step looks like:
1, create lws_context
2, create event loop (for the libuv case)
3, create the vhost from config
4, start event loop.
So, For the dynamic add virtual host case, I am trying to implement it as:
1, start the host1 as lwsws does;
2, call las_create_vhost to create a new vhost2 at http response callback.
I am not sure if this is the right thing to do.
Thanks for any suggestions …
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets