Skip to main content

moq_client_set_bind

Function moq_client_set_bind 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_client_set_bind( client: u32, addr: *const c_char, addr_len: usize, ) -> i32
Expand description

Set the local UDP socket address to bind, e.g. "[::]:0" (the default) or "192.0.2.7:0" to pin the outgoing interface.

Returns zero on success, or a negative code if the handle is unknown or the address does not parse.

ยงSafety

  • The caller must ensure that addr is a valid pointer to addr_len bytes.