[Libwebsockets] Best way to send huge packets with fragmented frames

Andy Green andy at warmcat.com
Thu Nov 26 11:57:19 CET 2015



On 26 November 2015 16:58:32 GMT+08:00, Nino Benedetto <neoben.86 at gmail.com> wrote:
>Hello everybody!
>I implemented a websocket client and I'd like to send huge messages,
>but I
>limited the message payload to 8K and I need to use that payload value.
>What is the best way to send the packet by fragmenting the data into
>frames
>of 8K?
>Note that server side there is an application that is not written in
>C++,
>so I need to use some standard features to be able to reassembly the
>fragmented frames.
>Is there some code example to answer my question?
>I looked at the test-fraggle code, but it seems to solve a different
>issue.

No fraggle has all the pieces you need.

-Andy

>Thank you!




More information about the Libwebsockets mailing list