Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
kcenon::network::internal::ws_frame_header Struct Reference

Represents a decoded WebSocket frame header. More...

#include <websocket_frame.h>

Collaboration diagram for kcenon::network::internal::ws_frame_header:
Collaboration graph

Public Attributes

bool fin
 Final fragment flag.
 
bool rsv1
 Reserved bit 1.
 
bool rsv2
 Reserved bit 2.
 
bool rsv3
 Reserved bit 3.
 
ws_opcode opcode
 Operation code.
 
bool mask
 Mask flag.
 
uint64_t payload_len
 Payload length.
 
std::array< uint8_t, 4 > masking_key
 Masking key (if mask == true)
 

Detailed Description

Represents a decoded WebSocket frame header.

This structure contains all the header fields from a WebSocket frame according to RFC 6455 section 5.2.

Definition at line 38 of file websocket_frame.h.

Member Data Documentation

◆ fin

bool kcenon::network::internal::ws_frame_header::fin

Final fragment flag.

Definition at line 40 of file websocket_frame.h.

◆ mask

bool kcenon::network::internal::ws_frame_header::mask

Mask flag.

Definition at line 45 of file websocket_frame.h.

◆ masking_key

std::array<uint8_t, 4> kcenon::network::internal::ws_frame_header::masking_key

Masking key (if mask == true)

Definition at line 47 of file websocket_frame.h.

◆ opcode

ws_opcode kcenon::network::internal::ws_frame_header::opcode

Operation code.

Definition at line 44 of file websocket_frame.h.

◆ payload_len

uint64_t kcenon::network::internal::ws_frame_header::payload_len

Payload length.

Definition at line 46 of file websocket_frame.h.

◆ rsv1

bool kcenon::network::internal::ws_frame_header::rsv1

Reserved bit 1.

Definition at line 41 of file websocket_frame.h.

◆ rsv2

bool kcenon::network::internal::ws_frame_header::rsv2

Reserved bit 2.

Definition at line 42 of file websocket_frame.h.

◆ rsv3

bool kcenon::network::internal::ws_frame_header::rsv3

Reserved bit 3.

Definition at line 43 of file websocket_frame.h.


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