Skip to main content

moq_server_close

Function moq_server_close 

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

Stop listening.

Returns immediately: zero on success, or a negative code if the server is unknown or already closing. Sessions already accepted keep running. The on_request callback still fires once more with a terminal 0 after the sockets are released, so the address can be bound again from there; release user_data in that callback.