Skip to main content

pamoja_loopback_transport_new

Function pamoja_loopback_transport_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_loopback_transport_new( broker: *const PamojaLoopbackBroker, ) -> *mut PamojaLoopbackTransport
Expand description

Creates a link to a broker.

§Arguments

  • broker - the broker to join. It is shared, not consumed, so the same broker can back as many links as the caller needs.

§Returns

A handle the caller must release with pamoja_loopback_transport_free, or null if broker is null.

§Safety

broker must be a live handle from pamoja_loopback_broker_new, or null.