1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/client
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-handshake.c client: add local_protocol_name binding to info 2018-04-06 10:38:02 +08:00
client-parser.c refactor-eliminate-lws-union 2017-12-01 11:37:35 +08:00
client.c client: add local_protocol_name binding to info 2018-04-06 10:38:02 +08:00
ssl-client.c tls: split out common, openssl and mbedtls code 2017-10-25 07:17:29 +08:00