eprintln!("Error eprintln!("Error eprintln!("Error std::io::{Read, std::io::{Read, std::io::{Read, std::io::{Read, stream.write_all(&host).unwrap(); stream.write_all(&host).unwrap(); TcpStream) TcpStream) TcpStream) TcpStream) TcpStream) oss.into_string(); oss.into_string(); oss.into_string(); oss.into_string(); oss.into_string(); oss.into_string(); hostname::get(); hostname::get(); hostname::get(); client: client: client: client: client: client: client: String::from("unknown2") String::from("unknown2") TcpStream}; TcpStream}; TcpStream}; TcpStream}; TcpStream}; oss.into_string(); oss.into_string(); oss.into_string(); 0.0.0.0:1026"); 0.0.0.0:1026"); 0.0.0.0:1026"); 0.0.0.0:1026"); Ok(stream) Ok(stream) Ok(stream) Ok(stream) Ok(stream) String::from("unknown1") String::from("unknown1") hostname::get(); hostname::get(); hostname::get(); Write}; Write}; Write}; Write}; Write}; Write}; Write}; oss.into_string(); oss.into_string(); oss.into_string(); hostname::get(); hostname::get(); hostname::get(); Ok(size) Ok(size) Ok(size) Ok(size) Ok(size) Ok(size) std::thread::spawn(|| std::thread::spawn(|| std::thread::spawn(|| handle_client(mut handle_client(mut handle_client(mut listener.incoming() listener.incoming() listener.incoming() stream.write_all(&host).unwrap(); stream.write_all(&host).unwrap(); std::net::{TcpListener, std::net::{TcpListener, std::net::{TcpListener, handle_client(mut handle_client(mut handle_client(mut Ok(stream) Ok(stream) Ok(stream) Ok(stream) Ok(stream) address"); address"); address"); address"); address"); host.as_bytes(); host.as_bytes(); host.as_bytes(); String::from("unknown2") String::from("unknown2") connection: connection: connection: connection: connection: TcpStream) TcpStream) TcpStream) TcpStream) TcpStream) client: client: client: client: client: client: client: String::from("unknown2") String::from("unknown2") std::io::{Read, std::io::{Read, std::io::{Read, std::io::{Read, stream.write_all(&host).unwrap(); stream.write_all(&host).unwrap(); eprintln!("Error eprintln!("Error eprintln!("Error stream: stream: stream: stream: stream: stream: stream: 0.0.0.0:1026"); 0.0.0.0:1026"); 0.0.0.0:1026"); 0.0.0.0:1026"); oss.into_string(); oss.into_string(); oss.into_string(); println!("Server println!("Server println!("Server host.as_bytes(); host.as_bytes(); host.as_bytes(); listener.incoming() listener.incoming() listener.incoming() TcpStream}; TcpStream}; TcpStream}; TcpStream}; TcpStream}; connection: connection: connection: connection: connection: connection: connection: connection: connection: connection: buffer) buffer) buffer) buffer) buffer) buffer) buffer) connection: connection: connection: connection: connection: Write}; Write}; Write}; Write}; Write}; Write}; Write}; address"); address"); address"); address"); address"); Ok(stream) Ok(stream) Ok(stream) Ok(stream) Ok(stream) Ok(stream) Ok(stream) Ok(stream) Ok(stream) Ok(stream) eprintln!("Error eprintln!("Error eprintln!("Error eprintln!("Error eprintln!("Error eprintln!("Error hostname::get(); hostname::get(); hostname::get(); std::net::{TcpListener, std::net::{TcpListener, std::net::{TcpListener, stream.write_all(&host).unwrap(); stream.write_all(&host).unwrap(); Write}; Write}; Write}; Write}; Write}; Write}; Write}; Write}; Write}; Write}; Write}; Write}; Write}; Write}; Ok(stream) Ok(stream) Ok(stream) Ok(stream) Ok(stream) oss.into_string(); oss.into_string(); oss.into_string(); Ok(size) Ok(size) Ok(size) Ok(size) Ok(size) Ok(size) host.as_bytes(); host.as_bytes(); host.as_bytes(); std::thread::spawn(|| std::thread::spawn(|| std::thread::spawn(|| handle_client(mut handle_client(mut handle_client(mut handle_client(mut handle_client(mut handle_client(mut