Skip to main content

pamoja_coap_server_recv

Function pamoja_coap_server_recv 

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

Waits for the next reading sent to a path the server takes.

§Arguments

  • server - the server.
  • out_message - receives a message handle to release with pamoja_message_free.

§Returns

PamojaStatus::Ok with a message, or PamojaStatus::Closed if the server is not connected.

§Safety

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