WPILibC++ 2024.3.2
wpi::WebSocket::Frame Struct Reference

Frame. More...

#include <wpinet/WebSocket.h>

Public Member Functions

constexpr Frame (uint8_t opcode, std::span< const uv::Buffer > data)
 

Public Attributes

uint8_t opcode
 
std::span< const uv::Bufferdata
 

Static Public Attributes

static constexpr uint8_t kText = kFlagFin | kOpText
 
static constexpr uint8_t kBinary = kFlagFin | kOpBinary
 
static constexpr uint8_t kTextFragment = kOpText
 
static constexpr uint8_t kBinaryFragment = kOpBinary
 
static constexpr uint8_t kFragment = kOpCont
 
static constexpr uint8_t kFinalFragment = kFlagFin | kOpCont
 
static constexpr uint8_t kPing = kFlagFin | kOpPing
 
static constexpr uint8_t kPong = kFlagFin | kOpPong
 

Detailed Description

Frame.

Used by SendFrames().

Constructor & Destructor Documentation

◆ Frame()

constexpr wpi::WebSocket::Frame::Frame ( uint8_t  opcode,
std::span< const uv::Buffer data 
)
inlineconstexpr

Member Data Documentation

◆ data

std::span<const uv::Buffer> wpi::WebSocket::Frame::data

◆ kBinary

constexpr uint8_t wpi::WebSocket::Frame::kBinary = kFlagFin | kOpBinary
staticconstexpr

◆ kBinaryFragment

constexpr uint8_t wpi::WebSocket::Frame::kBinaryFragment = kOpBinary
staticconstexpr

◆ kFinalFragment

constexpr uint8_t wpi::WebSocket::Frame::kFinalFragment = kFlagFin | kOpCont
staticconstexpr

◆ kFragment

constexpr uint8_t wpi::WebSocket::Frame::kFragment = kOpCont
staticconstexpr

◆ kPing

constexpr uint8_t wpi::WebSocket::Frame::kPing = kFlagFin | kOpPing
staticconstexpr

◆ kPong

constexpr uint8_t wpi::WebSocket::Frame::kPong = kFlagFin | kOpPong
staticconstexpr

◆ kText

constexpr uint8_t wpi::WebSocket::Frame::kText = kFlagFin | kOpText
staticconstexpr

◆ kTextFragment

constexpr uint8_t wpi::WebSocket::Frame::kTextFragment = kOpText
staticconstexpr

◆ opcode

uint8_t wpi::WebSocket::Frame::opcode

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