Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unused)]
- fn main() {
- use std::net::TcpStream;
- let stream = TcpStream::connect("127.0.0.1:8080")
- .expect("Couldn't connect to the server...");
- stream.set_read_timeout(None).expect("set_read_timeout call failed");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement