pub fn forward(a: IpcStream, b: IpcStream) -> Result<(u64, u64)>Expand description
Copies both directions between a and b until both ended, passing
the end of each direction on with IpcStream::close_write. Returns
the bytes copied from a to b and from b to a.
This stacks transports: a relay that accepts on one endpoint and forwards to another one never parses the protocol.