Constants related to frame and payload limits. More...
Variables | |
static unsigned int const | basic_header_length = 2 |
Minimum length of a WebSocket frame header. More... | |
static unsigned int const | max_header_length = 14 |
Maximum length of a WebSocket header. More... | |
static unsigned int const | max_extended_header_length = 12 |
Maximum length of the variable portion of the WebSocket header. More... | |
static uint8_t const | payload_size_basic = 125 |
Maximum size of a basic WebSocket payload. More... | |
static uint16_t const | payload_size_extended = 0xFFFF |
Maximum size of an extended WebSocket payload (basic payload = 126) More... | |
static uint64_t const | payload_size_jumbo = 0x7FFFFFFFFFFFFFFFLL |
Maximum size of a jumbo WebSocket payload (basic payload = 127) More... | |
static uint8_t const | close_reason_size = 123 |
Maximum size of close frame reason. More... | |
Constants related to frame and payload limits.
|
static |
|
static |
|
static |
|
static |
Maximum size of a basic WebSocket payload.
Definition at line 156 of file frame.hpp.
Referenced by websocketpp::frame::basic_header::basic_header(), websocketpp::frame::get_payload_size(), websocketpp::processor::hybi13< stub_config >::prepare_close(), websocketpp::processor::hybi13< stub_config >::prepare_control(), websocketpp::processor::hybi13< stub_config >::validate_incoming_basic_header(), and websocketpp::processor::hybi13< stub_config >::validate_incoming_extended_header().
|
static |
Maximum size of an extended WebSocket payload (basic payload = 126)
Definition at line 159 of file frame.hpp.
Referenced by websocketpp::frame::basic_header::basic_header(), and websocketpp::processor::hybi13< stub_config >::validate_incoming_extended_header().
|
static |
|
static |
Maximum size of close frame reason.
This is payload_size_basic - 2 bytes (as first two bytes are used for the close code
Definition at line 169 of file frame.hpp.
Referenced by websocketpp::connection< stub_config >::close().