[Libwebsockets] lws_write

Pranjali Chumbhale pranjalic at safeai.ai
Tue Mar 17 17:41:54 CET 2020


Hello Team,

I am a bit confused with the pointer to pass to lws_write call.
On websocket data goes like: LWS_SEND_BUFFER_PRE_PADDING + DATA +
LWS_SEND_BUFFER_POST_PADDING

So should the buf point to start of pre-padding and len should be inclusive
of pre paddinga nd post padding? Or just the length of the actual data?

LWS_VISIBLE LWS_EXTERN int
lws_write(struct lws *wsi, unsigned char *buf, size_t len,
enum lws_write_protocol protocol);

Regards,
Pranjali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20200317/1bb7d728/attachment.htm>


More information about the Libwebsockets mailing list