pub fn read_version<R>(stream: R) -> Result<u16, Error>where R: Read,
Read protocol version from a stream