This website works better with JavaScript.
Home
Explore
Help
Sign In
noelle
/
rust-webserver
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Allow connections
master
Noelle
5 years ago
parent
456c58bd4a
commit
2bcd913474
1 changed files
with
9 additions
and
1 deletions
Unified View
Show Diff Stats
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!");
}
}
}
Write
Preview
Loading…
Cancel
Save