@@ -12,9 +12,9 @@ fn main() { | |||
let mut buffer = String::new(); | |||
match std::io::stdin().read_line(&mut buffer) { | |||
Ok(n) => { | |||
if n == 0 { | |||
break; | |||
} | |||
if n == 0 { | |||
break; // Beenden bei EOF | |||
} | |||
println!("Sending {}", buffer); | |||
stream.write(buffer.as_bytes()).unwrap(); | |||
println!("Sent {}, awaiting reply...", buffer); |