VLink 2.0.0
A high-performance communication middleware
Loading...
Searching...
No Matches
fdbus_conf.h File Reference

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

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

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");
Note
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".