VLink  2.0.0
A high-performance communication middleware
ddsc_conf.h 文件参考

Transport configuration for the ddsc:// CycloneDDS transport. 更多...

此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

详细描述

Transport configuration for the ddsc:// CycloneDDS transport.

DdscConf binds the ddsc:// URL scheme to Eclipse CycloneDDS, the lightweight, production-grade open-source DDS implementation from the Eclipse Foundation. The backend is fully cross-machine: writers and readers participate in a standards- compliant RTPS Domain and discover each other automatically over UDP multicast (or via a configured discovery server). Use it whenever a DDS deployment is required and a small footprint is preferred over the broader Fast-DDS feature set.

Supported Node Types
Publisher Subscriber Server Client Getter Setter
yes yes yes yes yes yes
URL Format
ddsc://<topic>[?domain=<N>&depth=<N>&qos=<profile>]
Component Description
topic CycloneDDS topic name, assembled from the URL host plus path
domain DDS Domain ID (?domain=); falls back to the VLINK_DDS_DOMAIN env var
depth Optional history-depth override; 0 keeps the depth of the selected QoS
qos Named QoS profile previously registered via register_qos()
Backend-Specific Options
Option Purpose Default
Domain ID Isolates discovery traffic between deployments 0
History depth Per-instance KeepLast retention from QoS
Response topic suffix Auto-derived RPC reply topic name ___resp
Example
vlink::DdscConf::register_qos("reliable_profile", qos);
auto pub = vlink::Publisher<MyMsg>::create_unique("ddsc://sensors/lidar?domain=7&qos=reliable_profile");
auto sub = vlink::Subscriber<MyMsg>::create_unique("ddsc://sensors/lidar?domain=7&qos=reliable_profile");
注解
Compiled only when VLINK_SUPPORT_DDSC is defined at build time.
Unlike DdsConf, no external XML profile loading or register_topic() helper is exposed.