basic project start

This commit is contained in:
Mitchell 2020-04-08 22:49:14 +00:00
parent 7259c52c19
commit e85fde11e4
2 changed files with 20 additions and 0 deletions

9
Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "server-rust"
version = "0.1.0"
authors = ["Mitchell <mitchellhardie1@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

11
src/main.rs Normal file
View File

@ -0,0 +1,11 @@
use std::net::TcpListener;
fn main(){
let listener = TcpListener::bind("127.0.0.1:6001").unwrap();
for stream in listener.incoming(){
let stream = stream.unwrap();
println!("Connection Established!");
}
}