grin_p2p::msg
pub fn read_message<T: Readable, R: Read>( stream: &mut R, version: ProtocolVersion, msg_type: Type) -> Result<T, Error>
Reads a full message from the underlying stream.