morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::wire::ProtocolRange Struct Reference

Inclusive protocol-version range a server advertises in reply to "hello". More...

#include <wire.hpp>

Public Attributes

std::uint32_t min = kProtocolVersion
 Oldest protocol version the server accepts.
std::uint32_t max = kProtocolVersion
 Newest protocol version the server accepts.
std::vector< std::string > capabilities
 Optional envelope kinds the server honours, beyond those every server of this protocol version does (e.g. kCapabilityCancel).

Detailed Description

Inclusive protocol-version range a server advertises in reply to "hello".

Serialized as the "ok" reply's body (JSON) when a server accepts a "hello" — see ServerConfig::minProtocolVersion/maxProtocolVersion.

Definition at line 184 of file wire.hpp.

Member Data Documentation

◆ min

std::uint32_t morph::wire::ProtocolRange::min = kProtocolVersion

Oldest protocol version the server accepts.

Definition at line 186 of file wire.hpp.

◆ max

std::uint32_t morph::wire::ProtocolRange::max = kProtocolVersion

Newest protocol version the server accepts.

Definition at line 189 of file wire.hpp.

◆ capabilities

std::vector<std::string> morph::wire::ProtocolRange::capabilities

Optional envelope kinds the server honours, beyond those every server of this protocol version does (e.g. kCapabilityCancel).

Additive: a reply from a server that predates the list has no such key, and decodes to an empty list — "nothing optional is supported".

Definition at line 196 of file wire.hpp.


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