Skip to main content

splice_to_wire_socket

Function splice_to_wire_socket 

Source
pub async fn splice_to_wire_socket<R, W>(
    wire_socket: impl AsRef<Path>,
    carrier: &str,
    peer: Option<IpAddr>,
    origin: &str,
    send: W,
    recv: R,
) -> Result<()>
where R: AsyncRead + Unpin, W: AsyncWrite + Unpin,
Expand description

Connect to wire_socket, write the preamble, splice recv/send both ways.