91 ClientMessage(uint64_t logTime, uint64_t publishTime, uint32_t sequence,
94 , publishTime(publishTime)
96 , advertisement(advertisement)
97 , dataLength(dataLength)
99 std::memcpy(data.data(), rawData, dataLength);
102 static const size_t MSG_PAYLOAD_OFFSET = 5;
105 return data.data() + MSG_PAYLOAD_OFFSET;
108 return data.size() - MSG_PAYLOAD_OFFSET;
135 return 4 + 4 + 4 + encoding.size() + data.size();
137 void read(
const uint8_t* data,
size_t size);
138 void write(uint8_t* data)
const;
ClientAdvertisement advertisement
bool operator==(const ServiceResponse &other) const
std::optional< std::string > schemaEncoding
constexpr char SUPPORTED_SUBPROTOCOL[]
std::string responseSchema
bool operator==(const ChannelWithoutId &other) const
std::vector< uint8_t > data
constexpr char CAPABILITY_CLIENT_PUBLISH[]
constexpr char CAPABILITY_PARAMETERS_SUBSCRIBE[]
std::size_t getLength() const
constexpr char CAPABILITY_CONNECTION_GRAPH[]
constexpr char CAPABILITY_TIME[]
bool operator==(const Channel &other) const
std::vector< uint8_t > data
constexpr char CAPABILITY_SERVICES[]
ClientMessage(uint64_t logTime, uint64_t publishTime, uint32_t sequence, const ClientAdvertisement &advertisement, size_t dataLength, const uint8_t *rawData)
Service(const ServiceWithoutId &s, const ServiceId &id)
Channel(ChannelId id, ChannelWithoutId ch)
constexpr char CAPABILITY_PARAMETERS[]
std::string requestSchema
const uint8_t * getData() const
ClientChannelId channelId
std::vector< uint8_t > schema
constexpr std::array< const char *, 5 > DEFAULT_CAPABILITIES