Function bore_cli::shared::proxy

source ·
pub async fn proxy<S1, S2>(stream1: S1, stream2: S2) -> Result<()>where
    S1: AsyncRead + AsyncWrite + Unpin,
    S2: AsyncRead + AsyncWrite + Unpin,
Expand description

Copy data mutually between two read/write streams.