Undochanges to tc_server.rs

This commit is contained in:
Paul Nehlich 2022-09-23 11:04:58 +02:00
parent e2477297b5
commit b2dc03f368
1 changed files with 1 additions and 2 deletions

View File

@ -3,8 +3,7 @@ extern crate core;
use std::net::{IpAddr, Ipv4Addr, SocketAddr, UdpSocket};
use std::thread;
fn main() {
fn main() {
let server_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 7301);
let socket = UdpSocket::bind(&server_addr.clone()).expect("Error opening UDP socket");
let mut recv_buf = [0; 1024];