Skip to main content

negotiate_version

Function negotiate_version 

Source
pub fn negotiate_version(
    client_versions: &[VarInt],
    server_version: VarInt,
) -> Result<VarInt, SetupError>
Expand description

Negotiate a version from the client’s offered list and the server’s selected version.