Browse Source

Allow connections

master
Noelle 4 years ago
parent
commit
2bcd913474
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      src/main.rs

+ 9
- 1
src/main.rs View File

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!");
}
} }

Loading…
Cancel
Save