pasternakd/src/main.rs

17 lines
311 B
Rust
Raw Normal View History

2024-04-13 13:28:50 +03:00
use std::net;
use pasternakd::handle_client;
fn main() {
let listener = net::TcpListener::bind("127.0.0.1:8492")
.expect("Failed to listen on port 8492");
println!("Listening on port 8492");
2024-04-13 13:28:50 +03:00
for stream in listener.incoming() {
println!("Handling Client");
2024-04-13 13:28:50 +03:00
handle_client();
}
main();
}