Skip to main content

pamoja_coap_client_recv

Function pamoja_coap_client_recv 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_coap_client_recv( client: *mut PamojaCoapClient, out_message: *mut *mut PamojaMessage, ) -> PamojaStatus
Expand description

Waits for the next message on an observed path.

§Arguments

  • client - the endpoint.
  • out_message - receives a message handle, or null when the endpoint is closed.

§Returns

PamojaStatus::Ok on success. A null out_message with an Ok status means the endpoint closed rather than that anything failed.

§Safety

client must be a live handle and out_message must be writable.