Skip to main content

pamoja_mesh_frame_relayed

Function pamoja_mesh_frame_relayed 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_mesh_frame_relayed( frame: *const PamojaMeshFrame, out_frame: *mut *mut PamojaMeshFrame, ) -> bool
Expand description

Returns the same frame with one hop spent, ready to forward.

§Arguments

  • frame - the frame just received.
  • out_frame - receives the frame to forward.

§Returns

true when the frame still had a hop to spend, with *out_frame set to a handle the caller must release with pamoja_mesh_frame_free, or false when its hops have run out and it must not be relayed further.

§Safety

frame must be a live handle from a call that produced one, or null, and out_frame must point to a writable *mut PamojaMeshFrame.