Initial commit

This commit is contained in:
Ferdinand Schober
2022-09-15 02:16:02 +02:00
commit d2a554cc8f
5 changed files with 513 additions and 0 deletions

9
src/bin/server.rs Normal file
View File

@@ -0,0 +1,9 @@
use std::{net::UdpSocket, thread, time::Duration};
fn main() {
let socket = UdpSocket::bind("127.0.0.1:42070").expect("couldn't bind to address");
loop {
socket.send_to(&[0; 0], "127.0.0.1:42069").expect("couldn't send data");
thread::sleep(Duration::from_millis(1));
}
}