Skip to main content

moq_session_close

Function moq_session_close 

Source
#[unsafe(no_mangle)]
pub extern "C" fn moq_session_close(session: u32) -> i32
Expand description

Request that a session shut down.

Returns immediately: zero on success, or a negative code if the session is unknown or already closing. Does NOT free user_data. The moq_session_connect on_status callback still fires once more with a terminal 0 (or a negative error), and that final callback is where user_data should be released. Safe to call from any thread, including from within on_status.