commit | 6163c967273fad05bf544e455bc185562eb6facc | [log] [tgz] |
---|---|---|
author | Andy Green <andy@warmcat.com> | Mon Jun 21 08:50:13 2021 +0100 |
committer | Andy Green <andy@warmcat.com> | Tue Jun 22 15:55:47 2021 +0100 |
tree | b99a8c4a0061949aac58d4d2da490e5c9b94d6d7 | |
parent | 8c122cd8bd5123e7def1e2602f1031fa93fc2c16 [diff] |
vhost: allow multiple listen sockets Some platforms need two sockets with AF_INET and AF_INET6 to listen to both protocols. This patch changes the single listen socket each vhost could previously handle to become an lws_dll2 and adapts the related code to handle them as a linked-list rather than as a singleton. The next patch adapts the listen / server code to create multiple listen wsi for vhosts listening on multiple ip protocols.
Libwebsockets is a simple-to-use, MIT-license, pure C library providing client and server for http/1, http/2, websockets, MQTT and other protocols in a security-minded, lightweight, configurable, scalable and flexible way. It's easy to build and cross-build via cmake and is suitable for tasks from embedded RTOS through mass cloud serving.
80+ independent minimal examples for various scenarios, CC0-licensed (public domain) for cut-and-paste, allow you to get started quickly.
There are a lot of READMEs on a variety of topics.
We do a huge amount of CI testing per push, currently 495 builds on 27 platforms.
If you're interested in ws + h.264, there's a 80-90% complete minimal example that needs help with the mp4 container part, the lws v4l2 integration, MPJPG->h.264 transcoding and ws transport to MediaSource parts already work.
Take a look at the top two patches on _v4l2
branch and post on the mailing list or github to discuss if you can help.
See the changelog
The master->main branch transition happened several months ago, currently master is still around as a mirror of main. master branch will go away some time before the next release.
This is the libwebsockets C library for lightweight websocket clients and servers. For support, visit
and consider joining the project mailing list at
https://libwebsockets.org/mailman/listinfo/libwebsockets
You can get the latest version of the library from git:
Doxygen API docs for development: https://libwebsockets.org/lws-api-doc-master/html/index.html