[Libwebsockets] reuse of lws_context_creation_info?

Zevv libwebsockets at zevv.nl
Mon Jul 1 11:30:03 CEST 2019


It seems that in all the examples with multiple vhosts, the
lws_context_creation_info struct used to create the initial lws_context
is updated and reused and also passed to lws_create_vhost(). Is there a
good reason to do this - like data being updated in the
lws_context_creation_info struct by lws_create_context() that is later
needed to also create the vhosts? Or should it also be ok to create a new
lws_context_creation_info for the vhost creation?

Thank you,

More information about the Libwebsockets mailing list