Update cargo project

This commit is contained in:
Werner
2021-12-04 12:23:22 -03:00
parent ccc6fabcd5
commit 3aa412536c
3 changed files with 13 additions and 24 deletions

View File

@ -1,7 +1,11 @@
// Copyright (c) TribuFu. All Rights Reserved.
#![allow(non_snake_case)]
use std::net::TcpListener;
fn main() {
Http::Main();
let listener = TcpListener::bind("127.0.0.1:7878").unwrap();
for stream in listener.incoming() {
Http::HandleConnection(stream.unwrap());
}
}