Beast Logo

PrevUpHomeNext

websocket::auto_fragment

Automatic fragmentation option.

using auto_fragment = implementation-defined;

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.

Remarks

Objects of this type are used with beast::websocket::stream::set_option.

Example

Setting the automatic fragmentation option:

...
websocket::stream<ip::tcp::socket> stream(ios);
stream.set_option(auto_fragment{true});
Requirements

Header: beast/websocket/option.hpp

Convenience header: beast/websocket.hpp


PrevUpHomeNext