network-reader
A client/server protocol for using io::Read and io::Seek over a network
Server example:
use Networked;
new_buffered
.unwrap
.listen
.unwrap;
Client example:
use NetworkReader;
let mut reader = new.unwrap;
// Read 4 bytes from Reader provided over the network
let mut buf = ;
reader.read_exact.unwrap;
If the two above samples were used together, the client would read the first 4 bytes from file "my_file.txt".