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

PrevUpHomeNext

websocket::error

Error codes returned from boost::beast::websocket::stream operations.

Synopsis

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

enum error
Values

Name

Description

closed

The WebSocket stream was gracefully closed at both endpoints.

buffer_overflow

The WebSocket operation caused a dynamic buffer overflow.

partial_deflate_block

The WebSocket stream produced an incomplete deflate block.

message_too_big

The WebSocket message exceeded the locally configured limit.

bad_http_version

The WebSocket handshake was not HTTP/1.1.

Error codes with this value will compare equal to @ref condition::handshake_failed

bad_method

The WebSocket handshake method was not GET.

Error codes with this value will compare equal to @ref condition::handshake_failed

no_host

The WebSocket handshake Host field is missing.

Error codes with this value will compare equal to @ref condition::handshake_failed

no_connection

The WebSocket handshake Connection field is missing.

Error codes with this value will compare equal to @ref condition::handshake_failed

no_connection_upgrade

The WebSocket handshake Connection field is missing the upgrade token.

Error codes with this value will compare equal to @ref condition::handshake_failed

no_upgrade

The WebSocket handshake Upgrade field is missing.

Error codes with this value will compare equal to @ref condition::handshake_failed

no_upgrade_websocket

The WebSocket handshake Upgrade field is missing the websocket token.

Error codes with this value will compare equal to @ref condition::handshake_failed

no_sec_key

The WebSocket handshake Sec-WebSocket-Key field is missing.

Error codes with this value will compare equal to @ref condition::handshake_failed

bad_sec_key

The WebSocket handshake Sec-WebSocket-Key field is invalid.

Error codes with this value will compare equal to @ref condition::handshake_failed

no_sec_version

The WebSocket handshake Sec-WebSocket-Version field is missing.

Error codes with this value will compare equal to @ref condition::handshake_failed

bad_sec_version

The WebSocket handshake Sec-WebSocket-Version field is invalid.

Error codes with this value will compare equal to @ref condition::handshake_failed

no_sec_accept

The WebSocket handshake Sec-WebSocket-Accept field is missing.

Error codes with this value will compare equal to @ref condition::handshake_failed

bad_sec_accept

The WebSocket handshake Sec-WebSocket-Accept field is invalid.

Error codes with this value will compare equal to @ref condition::handshake_failed

upgrade_declined

The WebSocket handshake was declined by the remote peer.

Error codes with this value will compare equal to @ref condition::handshake_failed

bad_opcode

The WebSocket frame contained an illegal opcode.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_data_frame

The WebSocket data frame was unexpected.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_continuation

The WebSocket continuation frame was unexpected.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_reserved_bits

The WebSocket frame contained illegal reserved bits.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_control_fragment

The WebSocket control frame was fragmented.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_control_size

The WebSocket control frame size was invalid.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_unmasked_frame

The WebSocket frame was unmasked.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_masked_frame

The WebSocket frame was masked.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_size

The WebSocket frame size was not canonical.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_frame_payload

The WebSocket frame payload was not valid utf8.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_close_code

The WebSocket close frame reason code was invalid.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_close_size

The WebSocket close frame payload size was invalid.

Error codes with this value will compare equal to @ref condition::protocol_violation

bad_close_payload

The WebSocket close frame payload was not valid utf8.

Error codes with this value will compare equal to @ref condition::protocol_violation


PrevUpHomeNext