Skip to main content

moq_client_set_failover_delay

Function moq_client_set_failover_delay 

Source
#[unsafe(no_mangle)]
pub extern "C" fn moq_client_set_failover_delay( client: u32, delay_ms: u64, ) -> i32
Expand description

Delay before also dialing the next resolved address (Happy Eyeballs), in milliseconds.

When DNS returns several addresses, attempts alternate between IPv6 and IPv4, each starting this long after the previous one, and the first to complete wins. Defaults to 250ms; zero dials every address at once.

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