Automatic clients name request for client + version update
This commit is contained in:
parent
ba9d82b086
commit
39b7d75235
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "chat-reseau"
|
name = "chat-reseau"
|
||||||
version = "0.5.5"
|
version = "0.5.7"
|
||||||
authors = ["Lucien Cartier-Tilet <drakpa@drakpa.fr>"]
|
authors = ["Lucien Cartier-Tilet <drakpa@drakpa.fr>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -114,7 +114,8 @@ fn get_name() -> String {
|
|||||||
|
|
||||||
fn write_to_server(stream: TcpStream) {
|
fn write_to_server(stream: TcpStream) {
|
||||||
let mut writer = BufWriter::new(&stream);
|
let mut writer = BufWriter::new(&stream);
|
||||||
|
writeln!(writer, "REQ CLIENTS").unwrap();
|
||||||
|
writer.flush().unwrap();
|
||||||
loop {
|
loop {
|
||||||
let line = &*get_entry();
|
let line = &*get_entry();
|
||||||
line.trim();
|
line.trim();
|
||||||
|
Loading…
Reference in New Issue
Block a user