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::permessage_deflate

permessage-deflate extension options.

Synopsis

Defined in header <boost/beast/websocket/option.hpp>

struct permessage_deflate
Data Members

Name

Description

client_enable

true to offer the extension in the client role

client_max_window_bits

Maximum client window bits to offer.

client_no_context_takeover

true if client_no_context_takeover desired

compLevel

Deflate compression level 0..9.

memLevel

Deflate memory level, 1..9.

server_enable

true to offer the extension in the server role

server_max_window_bits

Maximum server window bits to offer.

server_no_context_takeover

true if server_no_context_takeover desired

Description

These settings control the permessage-deflate extension, which allows messages to be compressed.

Remarks

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

Convenience header <boost/beast/websocket.hpp>


PrevUpHomeNext