Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
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