#[unsafe(no_mangle)]pub extern "C" fn pamoja_router_new(
address: u32,
capacity: usize,
) -> *mut PamojaRouterExpand description
Creates an empty routing table for a node.
§Arguments
address- the address of this node, which is whatpamoja_router_forwardrecognises as a local delivery.capacity- how many routes to make room for; passPAMOJA_ROUTING_DEFAULT_CAPACITYwhen there is no reason to choose. A capacity of zero is allowed and makes every unknown destination flood.
§Returns
A handle the caller must release with pamoja_router_free.