dpp::dave_binary_header_t
discordvoiceclient.h
uint8_t uint8_t dpp::dave_binary_header_t::opcode opcode dpp::dave_binary_header_t::opcode

Opcode type.

std::vector< uint8_t > std::vector<uint8_t> dpp::dave_binary_header_t::package package dpp::dave_binary_header_t::package

Data package, an opaque structure passed to the Discord libdave functions.

uint16_t uint16_t dpp::dave_binary_header_t::seq seq dpp::dave_binary_header_t::seq

Sequence number.

uint16_t uint16_t dpp::dave_binary_header_t::transition_id transition_id dpp::dave_binary_header_t::transition_id

Transition id, only valid when the opcode is commit and welcome state. Use get_transition_id() to obtain value.

dpp::dave_binary_header_t::dave_binary_header_t
(const std::string &buffer)
dave_binary_header_t
dpp::dave_binary_header_t::dave_binary_header_t
const std::string & buffer

Fill binary header from inbound buffer.

buffer

inbound websocket buffer

std::vector< uint8_t > std::vector< uint8_t > dpp::dave_binary_header_t::get_data () const get_data dpp::dave_binary_header_t::get_data

Get the data package from the packed binary frame, as a vector of uint8_t for use in the libdave functions

data blob

uint16_t uint16_t dpp::dave_binary_header_t::get_transition_id () const get_transition_id dpp::dave_binary_header_t::get_transition_id

Get transition ID for process_commit and process_welcome

Transition ID

DAVE E2EE Binary frame header.

T
dpp::dave_binary_header_t
seq
opcode
package
std::vector< T >
elements
std::vector< uint8_t >
elements
< uint8_t >
uint16_t
uint8_t
- dpp::dave_binary_header_t
  dave_binary_header_t
- dpp::dave_binary_header_t
  get_data
- dpp::dave_binary_header_t
  get_transition_id
- dpp::dave_binary_header_t
  opcode
- dpp::dave_binary_header_t
  package
- dpp::dave_binary_header_t
  seq
- dpp::dave_binary_header_t
  transition_id