mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
![]() This patch splits out some lws_context members into a new lws_vhost struct. - ssl state and options per vhost - SSL_CTX for serving and client per vhost - protocols[] per vhost - extensions[] per vhost lws_context maintains a linked list of lws_vhosts. The same lws_context_creation_info struct is used to regulate both the context creation and to create vhosts: for backward compatibility if you didn't provide the new LWS_SERVER_OPTION_EXPLICIT_VHOSTS option, then a default vhost is created at context creation time using the same info data as the context itself. If you will have multiple vhosts though, you should give the LWS_SERVER_OPTION_EXPLICIT_VHOSTS option at context creation time, create the context first and then the vhosts afterwards using lws_create_vhost(contest, &info); Although there is a lot of housekeeping to implement this change, there is almost no additional overhead if you don't use multiple vhosts and very little api impact (no changes to test apps). Signed-off-by: Andy Green <andy@warmcat.com> |
||
---|---|---|
.. | ||
.gitignore | ||
alloc.c | ||
base64-decode.c | ||
client-handshake.c | ||
client-parser.c | ||
client.c | ||
context.c | ||
daemonize.c | ||
extension-permessage-deflate.c | ||
extension-permessage-deflate.h | ||
extension.c | ||
getifaddrs.c | ||
getifaddrs.h | ||
handshake.c | ||
header.c | ||
hpack.c | ||
http2.c | ||
huftable.h | ||
lextable-strings.h | ||
lextable.h | ||
libev.c | ||
libuv.c | ||
libwebsockets.c | ||
libwebsockets.h | ||
lws-plat-mbed3.c | ||
lws-plat-mbed3.cpp | ||
lws-plat-unix.c | ||
lws-plat-win.c | ||
minihuf.c | ||
minilex.c | ||
output.c | ||
parsers.c | ||
pollfd.c | ||
private-libwebsockets.h | ||
rewrite.c | ||
server-handshake.c | ||
server.c | ||
service.c | ||
sha-1.c | ||
ssl-http2.c | ||
ssl.c |