Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
websocketpp::frame::extended_header Struct Reference

The variable size component of a WebSocket frame header. More...

#include <frame.hpp>

Public Member Functions

 extended_header ()
 
 extended_header (uint64_t payload_size)
 
 extended_header (uint64_t payload_size, uint32_t masking_key)
 

Public Attributes

uint8_t bytes [MAX_EXTENDED_HEADER_LENGTH]
 

Detailed Description

Definition at line 235 of file frame.hpp.

Constructor & Destructor Documentation

◆ extended_header() [1/3]

websocketpp::frame::extended_header::extended_header ( )
inline

Definition at line 236 of file frame.hpp.

236 {
237 std::fill_n(this->bytes,MAX_EXTENDED_HEADER_LENGTH,0x00);
238 }
uint8_t bytes[MAX_EXTENDED_HEADER_LENGTH]
Definition frame.hpp:258

◆ extended_header() [2/3]

websocketpp::frame::extended_header::extended_header ( uint64_t payload_size)
inline

Definition at line 240 of file frame.hpp.

240 {
241 std::fill_n(this->bytes,MAX_EXTENDED_HEADER_LENGTH,0x00);
242
243 copy_payload(payload_size);
244 }

◆ extended_header() [3/3]

websocketpp::frame::extended_header::extended_header ( uint64_t payload_size,
uint32_t masking_key )
inline

Definition at line 246 of file frame.hpp.

246 {
247 std::fill_n(this->bytes,MAX_EXTENDED_HEADER_LENGTH,0x00);
248
249 // Copy payload size
250 int offset = copy_payload(payload_size);
251
252 // Copy Masking Key
253 uint32_converter temp32;
254 temp32.i = masking_key;
255 std::copy(temp32.c,temp32.c+4,bytes+offset);
256 }

Member Data Documentation

◆ bytes

uint8_t websocketpp::frame::extended_header::bytes[MAX_EXTENDED_HEADER_LENGTH]

Definition at line 258 of file frame.hpp.


The documentation for this struct was generated from the following file: