Class RequestHeader

Inheritance Relationships

Base Type

Class Documentation

class RequestHeader : public iox::popo::RpcBaseHeader

Public Functions

explicit RequestHeader(const cxx::UniqueId &uniqueClientQueueId, const uint32_t lastKnownClientQueueIndex) noexcept

Constructs and initializes a RpcBaseHeader.

Parameters:
  • uniqueClientQueueId[in] is the cxx::UniqueId of the client queue to which the response shall be delivered

  • lastKnownClientQueueIndex[in] is the last know index of the client queue in the ChunkDistributor for fast lookup

RequestHeader(const RequestHeader &other) = delete
RequestHeader &operator=(const RequestHeader&) = delete
RequestHeader(RequestHeader &&rhs) noexcept = default
RequestHeader &operator=(RequestHeader &&rhs) noexcept = default
~RequestHeader() noexcept = default
void setSequenceId(const int64_t sequenceId) noexcept

Sets the sequence ID which is used to match a response to a request.

Note

The user has to set this manually if multiple requests are sent before a response is read since a server might drop a requests or process the requests out of order and therefore the responses might also be out of order

Parameters:

sequenceId[in] is a consecutive number set by the user

Public Static Functions

static RequestHeader *fromPayload(void *const payload) noexcept
static const RequestHeader *fromPayload(const void *const payload) noexcept