seqeron 0.18.0
Loading...
Searching...
No Matches
ProxyProtocol.hpp
Go to the documentation of this file.
1#pragma once
2
3// What a ClientProxy and its client share (doc/seqeron-protocol-spec.md §17.2, §17.7). The Java twin is
4// org.limitless.seqeron.protocol.ProxyProtocol, which also holds the channels; the stub builds its own.
5
6#include <cstdint>
7
9
10// The hostName a client names in its Attach unless it is configured with another.
11inline constexpr const char* PROXY_DEFAULT_HOST_NAME = "hosted";
12// Attach.protocolVersion.
13inline constexpr std::uint16_t PROXY_PROTOCOL_VERSION = 2;
14// The schema id of the MessageHeader on all four streams.
15inline constexpr std::uint16_t PROXY_SCHEMA_ID = 218;
16
17inline constexpr std::int32_t PROXY_ATTACH_REQUEST_STREAM = 301;
18inline constexpr std::int32_t PROXY_ATTACH_REPLY_STREAM = 302;
19inline constexpr std::int32_t PROXY_EVENTS_STREAM = 303;
20inline constexpr std::int32_t PROXY_COMMANDS_STREAM = 304;
21
22} // namespace org::limitless::seqeron::protocol
Definition ProxyProtocol.hpp:8
constexpr std::int32_t PROXY_COMMANDS_STREAM
Definition ProxyProtocol.hpp:20
constexpr std::uint16_t PROXY_PROTOCOL_VERSION
Definition ProxyProtocol.hpp:13
constexpr std::uint16_t PROXY_SCHEMA_ID
Definition ProxyProtocol.hpp:15
constexpr std::int32_t PROXY_EVENTS_STREAM
Definition ProxyProtocol.hpp:19
constexpr std::int32_t PROXY_ATTACH_REPLY_STREAM
Definition ProxyProtocol.hpp:18
constexpr const char * PROXY_DEFAULT_HOST_NAME
Definition ProxyProtocol.hpp:11
constexpr std::int32_t PROXY_ATTACH_REQUEST_STREAM
Definition ProxyProtocol.hpp:17