read_command_message

Function read_command_message 

Source
pub fn read_command_message<R: BufRead>(
    r: &mut R,
    protocol_version: u16,
) -> Result<(u32, Command), ProtocolError>
Expand description

Reads a command message from an input stream. If the result is Command::Reply, then the payload is command-specific and must be read immediately afterwards.