@@ -1,3 +1,11 @@ | |||
use std::net::TcpListener; | |||
fn main() { | |||
println!("Hello, world!"); | |||
let listener = TcpListener::bind("127.0.0.1:26382").unwrap(); | |||
for stream in listener.incoming() { | |||
let stream = stream.unwrap(); | |||
println!("Connection established!"); | |||
} | |||
} |