Skip to main content

moq_client_get_connect_timeout

Function moq_client_get_connect_timeout 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_client_get_connect_timeout( client: u32, out: *mut u64, ) -> i32
Expand description

Read the connect timeout, in milliseconds. See moq_client_set_connect_timeout.

A knob never set reads back as its default, so a fresh moq_client_create handle reports the defaults a dial would use. That is what a settings UI should show, rather than repeating numbers that go stale when a default is retuned.

Returns zero on success, or a negative code if the handle is unknown or out is NULL.

ยงSafety

  • The caller must ensure that out points to a writable uint64_t.