Function dfir_rs::util::tcp_framed
source ยท pub fn tcp_framed<Codec>(
stream: TcpStream,
codec: Codec,
) -> (FramedWrite<OwnedWriteHalf, Codec>, FramedRead<OwnedReadHalf, Codec>)where
Codec: Clone + Decoder,
Expand description
Helper creates a TCP Stream
and Sink
from the given socket, using the given Codec
to
handle delineation between inputs/outputs.