Skip to main content

read_packet

Function read_packet 

Source
pub async fn read_packet<R: AsyncRead + Unpin>(
    reader: &mut R,
    max: usize,
    deadline: Duration,
) -> Result<Option<(i32, Vec<u8>)>>
Expand description

Read one uncompressed packet’s id and body. None on a clean EOF between packets.