Function dfir_rs::util::tcp_bytes

source ยท
pub fn tcp_bytes(
    stream: TcpStream,
) -> (FramedWrite<OwnedWriteHalf, LengthDelimitedCodec>, FramedRead<OwnedReadHalf, LengthDelimitedCodec>)
Expand description

Helper creates a TCP Stream and Sink for Bytes strings where each string is length-delimited.