Skip to main content

serve

Function serve 

Source
pub fn serve(io: Box<dyn Io>, modem: Modem) -> Server
Expand description

Run modem on the device side until the Server is dropped, or the host closed a connection that does not come back (a TCP bridge; a PTY is served again when it is reopened). It sets the timeouts of io.