@@ -7,4 +7,17 @@ fn main() { | |||
} else { | |||
println!("Couldn't connect to server..."); | |||
} | |||
loop { | |||
let mut buffer = String::new(); | |||
match std::io::stdin().read_line(&mut buffer){ | |||
Ok(_n) => { | |||
println!("{}", buffer); | |||
} | |||
Err(_error) =>{ | |||
println!("Fehlerhafte Eingabe!"); | |||
break; | |||
} | |||
} | |||
} | |||
} // the stream is closed here |