VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
fdbus_conf.h 文件参考

Transport configuration for the fdbus:// FDBus IPC backend. 更多...

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

浏览该文件的源代码.

详细描述

Transport configuration for the fdbus:// FDBus IPC backend.

FdbusConf configures the FDBus IPC transport, a same-machine inter-process communication framework based on D-Bus-style service registration. FDBus supports both service-oriented (svc) and peer-to-peer IPC (ipc) modes.

Supported Node Types
fdbus:// supports all six node types: kPublisher, kSubscriber, kServer, kClient, kSetter, and kGetter.
URL Format
fdbus://<address>[?event=<name>][#<transport>]
Component Description
address FDBus service/topic address; formed from host + "/" + path
event Optional secondary event name (?event=)
transport Transport mode: "svc" (service, default) or "ipc" (fragment)
Example
// Service-oriented mode (default):
vlink::Publisher<MyMsg> pub("fdbus://my_service");
// IPC mode via URL fragment:
vlink::Publisher<MyMsg> pub("fdbus://my_service#ipc");
// Direct construction:
vlink::FdbusConf conf("my_service", "my_event", "svc");
注解
This header is compiled only when VLINK_SUPPORT_FDBUS is defined.
is_valid() returns false if address is empty or transport is neither "svc" nor "ipc".