Skip to main content

relay

Function relay 

Source
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.