1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib
Andy Green 3ed755e52d client: add local_protocol_name binding to info
In the case you are creating a client connection, there may be
no relationship between the ws protocol you want to bind to at
the server, and the local protocol name you want the wsi to
bind to at the client.

This introduces a new client info struct member .local_protocol_name,
if it is NULL then all is as before, otherwise it binds the client
wsi to the named protocol early in the process, and .protocol is used
for the negotiation with the ws server.

This allows you to bind client wsi to local protocol handlers that
don't share the name of the ws protocol the connection will try
to negotiate.
2018-04-06 10:38:02 +08:00
..
client client: add local_protocol_name binding to info 2018-04-06 10:38:02 +08:00
event-libs lws_snprintf 2018-03-12 09:28:42 +08:00
ext minimal-examples: add ws pmd example 2018-03-06 09:39:27 +08:00
http2 h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
jws lws_snprintf 2018-03-12 09:28:42 +08:00
misc esp32: map basic auth to nvs 2018-02-24 08:14:17 +08:00
plat lws_snprintf 2018-03-12 09:28:42 +08:00
server h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
tls h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
alloc.c acme: adaptations through plat for esp32 2017-12-11 13:30:12 +08:00
context.c minimal-ws-server-threads 2018-04-06 10:38:02 +08:00
handshake.c h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
header.c vhost: add 404 handler url option 2018-03-08 09:01:14 +08:00
lextable-strings.h parser: add x-auth-token 2017-12-01 11:37:36 +08:00
lextable.h parser: add x-auth-token 2017-12-01 11:37:36 +08:00
libwebsockets.c LWS_CALLBACK_CLIENT_CLOSED: split out client and server CLOSE callback 2018-04-06 10:38:02 +08:00
libwebsockets.h client: add local_protocol_name binding to info 2018-04-06 10:38:02 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
pollfd.c h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
private-libwebsockets.h h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
service.c h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00