Skip to main content

moq_session_snapshot

Function moq_session_snapshot 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_session_snapshot( session: u32, dst: *mut moq_connection_snapshot, ) -> i32
Expand description

Snapshot statistics and the negotiated protocol from the same live connection.

Returns zero on success, or a negative code when the handle is unknown or offline between reconnects. On failure, dst is untouched. The protocol string points at static storage valid for the process lifetime and must not be freed.

ยงSafety