Skip to main content

pamoja_router_route

Function pamoja_router_route 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_router_route( router: *const PamojaRouter, dst: u32, out_route: *mut PamojaRoute, ) -> bool
Expand description

Returns the whole route to a node.

§Arguments

  • router - the routing table.
  • dst - the node to reach.
  • out_route - receives the route.

§Returns

true when a route is known, with *out_route filled in, or false otherwise.

§Safety

router must be a live handle from pamoja_router_new, or null, and out_route must point to a writable PamojaRoute.