OpenHiva::TopicOptions::BuildTransportOptions

Description

Sets the communication mode of Topic.

Prototype

OpenHiva::TopicOptions &OpenHiva::TopicOptions::BuildTransportOptions(const std::string &transType, const TransportOptions &opts = TransportOptions())

Parameters

Parameter

Input/Output

Description

transType

Input

Communication type. Currently, the following types are supported:

  • DDS: Use fastdds for communication.
  • DSF: OpenHiva's unique high-performance zero-copy communication mode.
  • SHM: Use the posix shared memory interface for communication.

opts

Input

TransportOptions is of the std::unordered_map<std::string, std::string> type and can be ignored in the current version.

Returns

The TopicOptions object with communication mode set is returned.

Usage

None

Precautions

  • Non-reentrant, synchronous interface.
  • If you do not invoke this interface, DSF communication is used by default.