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.
pub fn negotiate_version(
client_versions: &[VarInt],
server_version: VarInt,
) -> Result<VarInt, SetupError>Negotiate a version from the client’s offered list and the server’s selected version.