#[unsafe(no_mangle)]pub unsafe extern "C" fn moq_client_set_versions(
client: u32,
versions: *const moq_string,
count: usize,
) -> i32Expand 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
versionsis either NULL with a zerocount, or a valid pointer tocountmoq_string values, each valid for its own length.