Function hydroflow::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.