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