From 6922c7635e11681c9b338e4a8002bca5c8c5b974 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Fri, 10 Feb 2023 20:26:03 +0100 Subject: [PATCH] server --- kubi-server/src/main.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/kubi-server/src/main.rs b/kubi-server/src/main.rs index d091d78..9460db3 100644 --- a/kubi-server/src/main.rs +++ b/kubi-server/src/main.rs @@ -1,3 +1,14 @@ +use kubi_udp::server::{Server, ServerConfig}; +use kubi_shared::networking::messages::{ClientToServerMessage, ServerToClientMessage}; + fn main() { - + let mut server: Server = Server::bind( + "0.0.0.0:1234".parse().unwrap(), + ServerConfig::default() + ).unwrap(); + loop { + if let Err(or) = server.update() { + println!("Server error: {or:?}") + } + } }