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

Handshake response message sent by server to client. More...

#include <handshake_protocol.hpp>

Collaboration diagram for handshake_response:
Collaboration graph

Static Public Member Functions

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

Public Attributes

std::uint16_t server_version_major
 
std::uint16_t server_version_minor
 
bool version_compatible
 
std::string server_identifier
 
error_code status
 
compression_type selected_compression = compression_type::none
 Compression type selected for this session.
 

Detailed Description

Handshake response message sent by server to client.

Member Data Documentation

◆ selected_compression

compression_type selected_compression = compression_type::none

Compression type selected for this session.

The server selects one compression type from the client's supported types, or none if compression is not desired or not supported. All subsequent frames in this session should use this compression type.