Diagnostic entity status response.
More...
#include <entity_status_response.h>
|
| | EntityStatusResponse (uint8_t protocolVersion, NodeType entityType, uint8_t maxOpenSockets, uint8_t currentlyOpenSocket) noexcept |
| | Constructor without maximum data size field. More...
|
| |
| | EntityStatusResponse (uint8_t protocolVersion, NodeType entityType, uint8_t maxOpenSockets, uint8_t currentlyOpenSocket, uint32_t maxDataSize) noexcept |
| | Constructor using maximum data size field. More...
|
| |
| NodeType | GetEntityType () const noexcept |
| | Get entity type. More...
|
| |
| uint8_t | GetMaxOpenSockets () const noexcept |
| | Get maximum open sockets number. More...
|
| |
| uint8_t | GetCurrentlyOpenSocket () const noexcept |
| | Get currently open socket number. More...
|
| |
| bool | TryGetMaxDataSize (uint32_t &maxDataSize) const noexcept |
| | Try to get the maximum data size. More...
|
| |
| void | Serialize (std::vector< uint8_t > &serializedMessage) const |
| | Serialize DoIP message. More...
|
| |
| bool | TryDeserialize (const std::vector< uint8_t > &serializedMessage, GenericNackType &nackCode) |
| | Try to deserialize DoIP message. More...
|
| |
|
| void | GetPayload (std::vector< uint8_t > &payload) const override |
| | Get message payload. More...
|
| |
| virtual bool | TrySetPayload (const std::vector< uint8_t > &payload, uint32_t payloadLength) override |
| | Try to set message payload. More...
|
| |
| | Message (PayloadType payloadType) noexcept |
| | Constructor. More...
|
| |
| | Message (uint8_t protocolVersion, PayloadType payloadType) noexcept |
| | Constructor. More...
|
| |
|
| static bool | TryExtractPayloadType (const std::vector< uint8_t > &serializedMessage, PayloadType &payloadType) |
| | Try to extract the payload type from the given serialized message. More...
|
| |
|
static const std::size_t | cHeaderSize {8} |
| | DoIP message header size.
|
| |
Diagnostic entity status response.
◆ EntityStatusResponse() [1/2]
| DoipLib::EntityStatusResponse::EntityStatusResponse |
( |
uint8_t |
protocolVersion, |
|
|
NodeType |
entityType, |
|
|
uint8_t |
maxOpenSockets, |
|
|
uint8_t |
currentlyOpenSocket |
|
) |
| |
|
noexcept |
Constructor without maximum data size field.
- Parameters
-
| protocolVersion | DoIP ISO protocol version |
| entityType | DoIP entity type |
| maxOpenSockets | Maximum number of concurrent open TCP sockets at the entity |
| currentlyOpenSocket | Current number of open TCP socket at the entity |
◆ EntityStatusResponse() [2/2]
| DoipLib::EntityStatusResponse::EntityStatusResponse |
( |
uint8_t |
protocolVersion, |
|
|
NodeType |
entityType, |
|
|
uint8_t |
maxOpenSockets, |
|
|
uint8_t |
currentlyOpenSocket, |
|
|
uint32_t |
maxDataSize |
|
) |
| |
|
noexcept |
Constructor using maximum data size field.
- Parameters
-
| protocolVersion | DoIP ISO protocol version |
| entityType | DoIP entity type |
| maxOpenSockets | Maximum number of concurrent open TCP sockets at the entity |
| currentlyOpenSocket | Current number of open TCP socket at the entity |
| maxDataSize | Maximum processable request data size |
◆ GetCurrentlyOpenSocket()
| uint8_t DoipLib::EntityStatusResponse::GetCurrentlyOpenSocket |
( |
| ) |
const |
|
noexcept |
Get currently open socket number.
- Returns
- Current number of open TCP socket at the entity
◆ GetEntityType()
| NodeType DoipLib::EntityStatusResponse::GetEntityType |
( |
| ) |
const |
|
noexcept |
Get entity type.
- Returns
- DoIP entity type
◆ GetMaxOpenSockets()
| uint8_t DoipLib::EntityStatusResponse::GetMaxOpenSockets |
( |
| ) |
const |
|
noexcept |
Get maximum open sockets number.
- Returns
- Maximum number of concurrent open TCP sockets at the entity
◆ GetPayload()
| void DoipLib::EntityStatusResponse::GetPayload |
( |
std::vector< uint8_t > & |
payload | ) |
const |
|
overrideprotectedvirtual |
Get message payload.
- Parameters
-
| [out] | payload | Payload byte array |
Implements DoipLib::Message.
◆ TryGetMaxDataSize()
| bool DoipLib::EntityStatusResponse::TryGetMaxDataSize |
( |
uint32_t & |
maxDataSize | ) |
const |
|
noexcept |
Try to get the maximum data size.
- Parameters
-
| [out] | maxDataSize | Maximum processable request data size |
- Returns
- True if the maximum size is available, otherwise false
◆ TrySetPayload()
| virtual bool DoipLib::EntityStatusResponse::TrySetPayload |
( |
const std::vector< uint8_t > & |
payload, |
|
|
uint32_t |
payloadLength |
|
) |
| |
|
overrideprotectedvirtual |
Try to set message payload.
- Parameters
-
| [in] | payload | Payload byte array |
| [in] | payloadLength | Payload length from the message header |
- Returns
- True if the payload is set successfully, otherwise false
Implements DoipLib::Message.