[][src]Function libcoap_sys::coap_remove_async

pub unsafe extern "C" fn coap_remove_async(
    context: *mut coap_context_t,
    session: *mut coap_session_t,
    id: coap_tid_t,
    s: *mut *mut coap_async_state_t
) -> c_int

Removes the state object identified by @p id from @p context. The removed object is returned in @p s, if found. Otherwise, @p s is undefined. This function returns @c 1 if the object was removed, @c 0 otherwise. Note that the storage allocated for the stored object is not released by this functions. You will have to call coap_free_async() to do so.

@param context The context where the async object is registered. @param session The session that is used for asynchronous transmissions. @param id The identifier of the asynchronous transaction. @param s Will be set to the object identified by @p id after removal.

@return @c 1 if object was removed and @p s updated, or @c 0 if no object was found with the given id. @p s is valid only if the return value is @c 1.