|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
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). | |
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.
| std::uint32_t morph::wire::ProtocolRange::min = kProtocolVersion |
| std::uint32_t morph::wire::ProtocolRange::max = kProtocolVersion |
| 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".