stage 1 attempt 1

This commit is contained in:
YK 2024-05-10 20:23:14 +03:00
parent 3d46294239
commit e05e736244

View File

@ -1,5 +1,5 @@
// Uncomment this block to pass the first stage // Uncomment this block to pass the first stage
// use std::net::TcpListener; use std::net::TcpListener;
fn main() { fn main() {
// You can use print statements as follows for debugging, they'll be visible when running tests. // You can use print statements as follows for debugging, they'll be visible when running tests.
@ -7,16 +7,16 @@ fn main() {
// Uncomment this block to pass the first stage // Uncomment this block to pass the first stage
// //
// let listener = TcpListener::bind("127.0.0.1:4221").unwrap(); let listener = TcpListener::bind("127.0.0.1:4221").unwrap();
//
// for stream in listener.incoming() { for stream in listener.incoming() {
// match stream { match stream {
// Ok(_stream) => { Ok(_stream) => {
// println!("accepted new connection"); println!("accepted new connection");
// } }
// Err(e) => { Err(e) => {
// println!("error: {}", e); println!("error: {}", e);
// } }
// } }
// } }
} }