Commit 39b7d752 authored by Phuntsok Drak-pa's avatar Phuntsok Drak-pa

Automatic clients name request for client + version update

parent ba9d82b0
[package]
name = "chat-reseau"
version = "0.5.5"
version = "0.5.7"
authors = ["Lucien Cartier-Tilet <drakpa@drakpa.fr>"]
[dependencies]
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment