Expand description
The C ABI for the in-process loopback broker.
These functions wrap [pamoja_loopback] so a caller can exercise the
publish-and-subscribe path with no broker, no network, and no hardware. That
matters most for the bindings: someone writing against the SDK from Python or
C# can drive a whole message flow in a unit test rather than standing up
infrastructure to find out whether their topics line up.
A broker is shared by cloning, so every transport built from one sees the
same traffic. Pair it with
pamoja_transport_faulty to
check what a caller does when a link starts refusing sends.
Structs§
- Pamoja
Loopback Broker - An opaque handle to an in-process broker.
- Pamoja
Loopback Transport - An opaque handle to one in-process link to a broker.
Functions§
- pamoja_
loopback_ ⚠broker_ free - Releases a broker handle.
- pamoja_
loopback_ broker_ new - Creates an in-process broker with no traffic.
- pamoja_
loopback_ ⚠transport_ connect - Marks a link connected so it will carry traffic.
- pamoja_
loopback_ ⚠transport_ disconnect - Marks a link disconnected, so sends over it fail.
- pamoja_
loopback_ ⚠transport_ free - Releases a link handle.
- pamoja_
loopback_ ⚠transport_ is_ connected - Reports whether a link is connected.
- pamoja_
loopback_ ⚠transport_ new - Creates a link to a broker.
- pamoja_
loopback_ ⚠transport_ recv - Waits for the next message on a subscribed topic.
- pamoja_
loopback_ ⚠transport_ send - Publishes a payload to a topic on the broker.
- pamoja_
loopback_ ⚠transport_ subscribe - Subscribes a link to a topic.
- pamoja_
transport_ ⚠loopback - Creates a loopback transport for composing into a ladder or a wrapper.