Skip to main content

pamoja_coap_server_observers

Function pamoja_coap_server_observers 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_coap_server_observers( server: *mut PamojaCoapServer, path: *const c_char, ) -> usize
Expand description

Counts the clients observing a resource.

§Arguments

  • server - the server.
  • path - the resource’s path, as null-terminated UTF-8.

§Returns

How many observers the resource has, or 0 if server or path is null.

§Safety

server must be a live handle and path a valid null-terminated UTF-8 string, or either may be null.