ORE Studio 0.0.4
Loading...
Searching...
No Matches
Static Public Member Functions | Public Attributes | List of all members
handshake_request Struct Referencefinal

Handshake request message sent by client to initiate connection. More...

#include <handshake_protocol.hpp>

Collaboration diagram for handshake_request:
Collaboration graph

Static Public Member Functions

static std::vector< std::byte > serialize (handshake_request v)
 Serialize to frame payload.
 
static std::expected< handshake_request, error_code > deserialize (std::span< const std::byte > data)
 Deserialize from frame payload.
 

Public Attributes

std::uint16_t client_version_major
 
std::uint16_t client_version_minor
 
std::string client_identifier
 
std::uint8_t supported_compression = 0
 Bitmask of compression types supported by the client.
 

Detailed Description

Handshake request message sent by client to initiate connection.

Member Data Documentation

◆ supported_compression

std::uint8_t supported_compression = 0

Bitmask of compression types supported by the client.

Bit 0 (0x01): zlib Bit 1 (0x02): gzip Bit 2 (0x04): bzip2

A value of 0x00 means no compression support (or old client). A value of 0x07 means all compression types are supported.