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

Transport configuration for the intra:// in-process messaging 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 intra:// in-process messaging backend.

IntraConf configures the in-process message queue transport, which delivers messages between publishers and subscribers running in the same OS process without any serialisation or inter-process overhead.

Supported Node Types
intra:// supports all six node types: kPublisher, kSubscriber, kServer, kClient, kSetter, and kGetter.
URL Format
intra://<address>[?event=<event_name>[&pipeline=<N>]][#<type>]
Component Description
address Topic name; formed from host + "/" + path
event Optional secondary filter string (?event=)
pipeline Queue pipeline depth (?pipeline=N, default 0)
type Delivery mode: "queue" or "direct" (fragment)
Example
// In-process pub/sub (queue mode, default):
vlink::Publisher<MyMsg> pub("intra://my_topic");
vlink::Subscriber<MyMsg> sub("intra://my_topic");
// Direct delivery (bypasses queue):
vlink::Publisher<MyMsg> pub("intra://my_topic#direct");
// With secondary event filter and pipeline depth:
vlink::Publisher<MyMsg> pub("intra://my_service?event=my_event&pipeline=4");
Note
This header is compiled only when VLINK_SUPPORT_INTRA is defined.
The address string must not be empty.