This network protocol was made by me after I forgot to put a network protocol in my application.
```rust use rusnet::*; use std::net::{ TcpListener, TcpStream };
fn main() { let listener = TcpListener::bind(("127.0.0.1", 0)).unwrap(); /* Usually this would be the client, but it is mocked for the sake of the example */ let mut output = Stream::new( TcpStream::connect( listener.localaddr().unwrap() ).unwrap() ).unwrap(); for stream in listener.incoming() { let mut input = Stream::new(stream.unwrap()).unwrap(); input.write("Hello, World!".tostring()).unwrap(); println!("{}", output.read().unwrap()); // This will print "Hello, World!" break; } } ```