Browse Source

Hinzufügen Kommentar

Key-exchange
Florian Geiger 2 years ago
parent
commit
a9ce9cc00b
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/bin/client.rs

+ 3
- 3
src/bin/client.rs View File

@@ -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);

Loading…
Cancel
Save