mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-25 16:28:42 -06:00
server recv
This commit is contained in:
parent
dc06305956
commit
aa4b552e0f
|
@ -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();
|
||||||
if self.socket.recv(&mut buf).is_ok() {
|
loop {
|
||||||
todo!()
|
if self.socket.recv(&mut buf).is_ok() {
|
||||||
|
todo!()
|
||||||
|
} else {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
buf.clear()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue