|
VLink
2.0.0
A high-performance communication middleware
|
Transport configuration for the intra:// in-process / zero-copy transport.
更多...
Transport configuration for the intra:// in-process / zero-copy transport.
IntraConf binds the intra:// URL scheme to VLink's in-process message bus. Publishers and subscribers that share the same OS process exchange messages directly through an in-memory queue without crossing kernel or network boundaries. When the payload is an IntraDataType (a shared-pointer wrapper around the message), serialisation is bypassed entirely and the pointer is handed off zero-copy; all other types take the normal Serializer path.
| Publisher | Subscriber | Server | Client | Getter | Setter |
|---|---|---|---|---|---|
| yes | yes | yes | yes | yes | yes |
| Component | Description |
|---|---|
address | In-process topic name (URL host concatenated with path); not empty |
event | Optional secondary event filter (?event=) |
pipeline | Queue-mode pipeline ID (?pipeline=); 0 selects the default pipe |
type | URL fragment; "queue" (buffered) or "direct" (inline dispatch) |
| Mode | Wakeup latency | Threading | Use case |
|---|---|---|---|
queue | Bounded | Subscriber loop drains the bus | Default; decoupled timing |
direct | Synchronous | Caller thread invokes callback | Hot loops, low latency |
VLINK_SUPPORT_INTRA is defined. address must not be empty; is_valid() additionally requires type to be either "queue" or "direct".