mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-24 04:48:21 -06:00
server recv
This commit is contained in:
parent
48e56f5275
commit
99605766d9
|
@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue