Class IpcRuntimeInterface

Class Documentation

class IpcRuntimeInterface

Public Functions

IpcRuntimeInterface(const RuntimeName_t &roudiName, const RuntimeName_t &runtimeName, const units::Duration roudiWaitingTimeout) noexcept

Runtime Interface for the own IPC channel and the one to the RouDi daemon.

Parameters:
  • roudiName[in] name of the RouDi IPC channel

  • runtimeName[in] name of the application’s runtime and its IPC channel

  • roudiWaitingTimeout[in] timeout for searching the RouDi IPC channel

~IpcRuntimeInterface() noexcept = default
IpcRuntimeInterface(const IpcRuntimeInterface&) = delete

Not needed therefore deleted.

IpcRuntimeInterface &operator=(const IpcRuntimeInterface&) = delete
IpcRuntimeInterface(IpcRuntimeInterface&&) = delete
IpcRuntimeInterface &operator=(IpcRuntimeInterface&&) = delete
bool sendKeepalive() noexcept

sends the keep alive trigger to the RouDi daemon

Returns:

true if sending was successful, false if not

bool sendRequestToRouDi(const IpcMessage &msg, IpcMessage &answer) noexcept

send a request to the RouDi daemon

Parameters:
  • msg[in] request to RouDi

  • answer[out] response from RouDi

Returns:

true if communication was successful, false if not

rp::BaseRelativePointer::offset_t getSegmentManagerAddressOffset() const noexcept

get the adress offset of the segment manager

Returns:

address offset as rp::BaseRelativePointer::offset_t

size_t getShmTopicSize() noexcept

get the size of the management shared memory object

Returns:

size in bytes

uint64_t getSegmentId() const noexcept

get the segment id of the shared memory object

Returns:

segment id