[Libwebsockets] Using libwebsockets as a codec

Ganesh Murthy gmurthy at redhat.com
Tue Jun 9 15:54:15 CEST 2020


Our application has its own IO layer and is capable of providing
libwebsockets with raw byte buffers. Does lws have a pure codec mode which
takes in these buffers and produces http events that I can then go on and
use? This question was already asked 4 years ago here  -
https://libwebsockets.org/pipermail/libwebsockets/2016-November/002888.html

The closest I could find to an api that accepts buffers is
https://github.com/warmcat/libwebsockets/blob/master/include/libwebsockets/lws-adopt.h#L173
but I don't have access to file descriptors.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20200609/1ea07c81/attachment.htm>


More information about the Libwebsockets mailing list