server recv

This commit is contained in:
griffi-gh 2023-02-06 20:54:30 +01:00
parent 48e56f5275
commit 99605766d9

View file

@ -58,8 +58,14 @@ impl Server {
} }
pub fn update(&mut self) { pub fn update(&mut self) {
let mut buf = Vec::new(); let mut buf = Vec::new();
loop {
if self.socket.recv(&mut buf).is_ok() { if self.socket.recv(&mut buf).is_ok() {
todo!() todo!()
} else {
break
} }
buf.clear()
}
} }
} }