pub fn relay(listener: &mut dyn Listener, target: &Endpoint) -> Result<()>Expand description
Accepts connections on listener and forwards each one to a new
connection to target (see forward) until the listener is closed or
exhausted. Waits for the forwarded connections to end before returning.