server recv

This commit is contained in:
griffi-gh 2023-02-06 20:54:30 +01:00
parent dc06305956
commit aa4b552e0f

View file

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