use std::net::TcpListener; | |||||
fn main() { | 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!"); | |||||
} | |||||
} | } |