The constant size component of a WebSocket frame header.
More...
#include <frame.hpp>
Definition at line 189 of file frame.hpp.
◆ basic_header() [1/3]
websocketpp::frame::basic_header::basic_header |
( |
| ) |
|
|
inline |
◆ basic_header() [2/3]
websocketpp::frame::basic_header::basic_header |
( |
uint8_t | p0, |
|
|
uint8_t | p1 ) |
|
inline |
◆ basic_header() [3/3]
websocketpp::frame::basic_header::basic_header |
( |
opcode::value | op, |
|
|
uint64_t | size, |
|
|
bool | fin, |
|
|
bool | mask, |
|
|
bool | rsv1 = false, |
|
|
bool | rsv2 = false, |
|
|
bool | rsv3 = false ) |
|
inline |
Definition at line 194 of file frame.hpp.
197 {
198 if (fin) {
200 }
201 if (rsv1) {
203 }
204 if (rsv2) {
206 }
207 if (rsv3) {
209 }
210 b0 |= (
op & BHB0_OPCODE);
211
212 if (mask) {
214 }
215
217
218 if (size <= limits::payload_size_basic) {
219 basic_value =
static_cast<uint8_t>(size);
220 } else if (size <= limits::payload_size_extended) {
221 basic_value = payload_size_code_16bit;
222 } else {
223 basic_value = payload_size_code_64bit;
224 }
225
226
228 }
◆ b0
uint8_t websocketpp::frame::basic_header::b0 |
◆ b1
uint8_t websocketpp::frame::basic_header::b1 |
The documentation for this struct was generated from the following file:
- libraries/fc/vendor/websocketpp/websocketpp/frame.hpp