mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-25 08:18:43 -06:00
server recv
This commit is contained in:
parent
dc06305956
commit
aa4b552e0f
|
@ -58,8 +58,14 @@ impl Server {
|
|||
}
|
||||
pub fn update(&mut self) {
|
||||
let mut buf = Vec::new();
|
||||
if self.socket.recv(&mut buf).is_ok() {
|
||||
todo!()
|
||||
loop {
|
||||
if self.socket.recv(&mut buf).is_ok() {
|
||||
todo!()
|
||||
} else {
|
||||
break
|
||||
}
|
||||
buf.clear()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue