This commit is contained in:
griffi-gh 2023-02-10 20:26:03 +01:00
parent aada43e8dc
commit 28a82cf69e

View file

@ -1,3 +1,14 @@
use kubi_udp::server::{Server, ServerConfig};
use kubi_shared::networking::messages::{ClientToServerMessage, ServerToClientMessage};
fn main() { fn main() {
let mut server: Server<ServerToClientMessage, ClientToServerMessage> = Server::bind(
"0.0.0.0:1234".parse().unwrap(),
ServerConfig::default()
).unwrap();
loop {
if let Err(or) = server.update() {
println!("Server error: {or:?}")
}
}
} }