Function dfir_rs::util::connect_tcp_bytes
source ยท pub fn connect_tcp_bytes() -> (TcpFramedSink<Bytes>, TcpFramedStream<LengthDelimitedCodec>)
Expand description
The inverse of bind_tcp_bytes
.
(Bytes, SocketAddr)
pairs fed to the returned Sender
will initiate new tcp connections to the specified SocketAddr
.
These connections will be cached and reused, so that there will only be one connection per destination endpoint. When the endpoint sends data back it will be available via the returned Receiver