Skip to main content

moq_client_set_versions

Function moq_client_set_versions 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_client_set_versions( client: u32, versions: *const moq_string, count: usize, ) -> i32
Expand description

Restrict the protocol versions offered during the handshake.

By default every supported version is offered and the server picks one. Pass a subset to pin the negotiation, in the same spelling the CLI uses: moq-lite-01 through moq-lite-06-wip, or moq-transport-14 through moq-transport-19. An empty list restores the default.

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

ยงSafety

  • The caller must ensure that versions is either NULL with a zero count, or a valid pointer to count moq_string values, each valid for its own length.