negotiate_protocol

Function negotiate_protocol 

Source
pub fn negotiate_protocol(
    local_min: u16,
    local_max: u16,
    remote_min: u16,
    remote_max: u16,
) -> Result<u16, SyncFrameError>
Expand description

Selects the newest protocol supported by both endpoints.