1#ifndef ENTITY_STATUS_RESPONSE_H
2#define ENTITY_STATUS_RESPONSE_H
5#include "./node_type.h"
13 static const PayloadType cPayloadType{
14 PayloadType::DoipEntityStatusResponse};
17 uint8_t mMaxOpenSockets;
18 uint8_t mCurrentlyOpenSocket;
20 uint32_t mMaxDataSize;
23 uint8_t protocolVersion,
25 uint8_t maxOpenSockets,
26 uint8_t currentlyOpenSocket,
28 uint32_t maxDataSize = 0)
noexcept;
30 void SetPayload(
const std::vector<uint8_t> &payload);
33 void GetPayload(std::vector<uint8_t> &payload)
const override;
36 const std::vector<uint8_t> &payload,
37 uint32_t payloadLength)
override;
48 uint8_t protocolVersion,
50 uint8_t maxOpenSockets,
51 uint8_t currentlyOpenSocket) noexcept;
60 uint8_t protocolVersion,
62 uint8_t maxOpenSockets,
63 uint8_t currentlyOpenSocket,
64 uint32_t maxDataSize) noexcept;
Diagnostic entity status response.
Definition: entity_status_response.h:11
virtual bool TrySetPayload(const std::vector< uint8_t > &payload, uint32_t payloadLength) override
Try to set message payload.
void GetPayload(std::vector< uint8_t > &payload) const override
Get message payload.
bool TryGetMaxDataSize(uint32_t &maxDataSize) const noexcept
Try to get the maximum data size.
uint8_t GetCurrentlyOpenSocket() const noexcept
Get currently open socket number.
uint8_t GetMaxOpenSockets() const noexcept
Get maximum open sockets number.
NodeType GetEntityType() const noexcept
Get entity type.
DoIP generic message.
Definition: message.h:12