Browse Source

Automatic clients name request for client + version update

master
Phuntsok Drak-pa 1 year ago
parent
commit
39b7d75235
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      Rust/Cargo.toml
  2. +2
    -1
      Rust/src/client.rs

+ 1
- 1
Rust/Cargo.toml View File

@@ -1,6 +1,6 @@
[package]
name = "chat-reseau"
version = "0.5.5"
version = "0.5.7"
authors = ["Lucien Cartier-Tilet <[email protected]>"]

[dependencies]


+ 2
- 1
Rust/src/client.rs View File

@@ -114,7 +114,8 @@ fn get_name() -> String {

fn write_to_server(stream: TcpStream) {
let mut writer = BufWriter::new(&stream);

writeln!(writer, "REQ CLIENTS").unwrap();
writer.flush().unwrap();
loop {
let line = &*get_entry();
line.trim();


Loading…
Cancel
Save