Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
websocket::stream::auto_fragment (1 of 2 overloads)

Set the automatic fragmentation option.

Synopsis
void
auto_fragment(
    bool value);
Description

Determines if outgoing message payloads are broken up into multiple pieces. When the automatic fragmentation size is turned on, outgoing message payloads are broken up into multiple frames no larger than the write buffer size. The default setting is to fragment messages.

Parameters

Name

Description

value

A bool indicating if auto fragmentation should be on.

Example

Setting the automatic fragmentation option:

ws.auto_fragment(true);

PrevUpHomeNext