Woman, Life, Freedom


DoIP Library
Diagnostics over Internet Protocol (DoIP) C++ library
alive_check_response.h
1#ifndef ALIVE_CHECK_RESPONSE_H
2#define ALIVE_CHECK_RESPONSE_H
3
4#include "./message.h"
5
6namespace DoipLib
7{
10 {
11 private:
12 static const PayloadType cPayloadType{PayloadType::AliveCheckResponse};
13
14 uint16_t mSourceAddress;
15
16 protected:
17 void GetPayload(std::vector<uint8_t> &payload) const override;
18
19 virtual bool TrySetPayload(
20 const std::vector<uint8_t> &payload,
21 uint32_t payloadLength) override;
22
23 public:
24 AliveCheckResponse() noexcept;
25
30 uint8_t protocolVersion, uint16_t sourceAddress) noexcept;
31
34 uint16_t GetSourceAddress() const noexcept;
35 };
36}
37
38#endif
DoIP tester alive check response.
Definition: alive_check_response.h:10
void GetPayload(std::vector< uint8_t > &payload) const override
Get message payload.
uint16_t GetSourceAddress() const noexcept
Get source address.
virtual bool TrySetPayload(const std::vector< uint8_t > &payload, uint32_t payloadLength) override
Try to set message payload.
DoIP generic message.
Definition: message.h:12