Skip to main content

select_version

Function select_version 

Source
async fn select_version(
    conf: &Config,
    stream: &mut TcpStream,
    is_initiator: bool,
) -> Result<(Version, Vec<u8>), NetworkError>
Expand description

Select a version from the range that both sides support.

This will be the minimum of the max. supported ones from both sides.