[Libwebsockets] bidirectional binary data transfer with binary websockets

Thomas Spitz thomas.spitz at hestia-france.com
Fri Dec 27 18:41:16 CET 2013


In fact, my question is whether we can send big files with
libwebsocket_write() without having to slice the file in small chunk of
less than a given size (2001 bytes in test-fraggle)

Thanks,
Thomas
On 27 Dec 2013 18:22, "Hemant Kumar" <andy.green at linaro.org> wrote:

> There is LWS_BINARY ,you can use in libwebsocket_write() for binary data.
> Gurus of LWS can clarify further ,if there is something more to it.
>
> Thanks
> -Hemant
>
>
> > On Dec 27, 2013, at 9:13 AM, "Thomas Spitz" <andy.green at linaro.org>
> wrote:
> >
> > Hello everybody,
> >
> > Is there a simple way to send and receive binary data using lws? As for
> example, sending/receiving a 1Mb binary configuration file, an image, ...
> >
> > I've seen through test-fraggle example that it is possible to send big
> file slicing it manually. I also saw that  libwebsocket_write() returns the
> number of byte effectively written and it is said that the user has to send
> the rest of the message if it hasn't been completely sent. It seems that
> raw functions are there but Am I missing any advance function like
> extensions?
> >
> > Thanks in advance,
> > Thomas
> > _______________________________________________
> > Libwebsockets mailing list
> > Libwebsockets at ml.libwebsockets.org
> > http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20131227/b406f487/attachment-0001.html>


More information about the Libwebsockets mailing list