fn send_dummy_to_socket(address: &str) {
	match TcpStream::connect(address) {
		Ok(mut stream) => {
			let _ = stream.set_read_timeout(Some(Duration::from_millis(100)));
			let _ = stream.write("".as_bytes());
		},
		Err(e) => {
			eprintln!("{}", e);
		}
	}
}
// trigger blocking read to exit loop
trigger blocking read to exit loop
trigger blocking read to exit loop
fn send_dummy_to_socket(address: &str) {
	match TcpStream::connect(address) {
		Ok(mut stream) => {
			let _ = stream.set_read_timeout(Some(Duration::from_millis(100)));
			let _ = stream.write("".as_bytes());
		},
		Err(e) => {
			eprintln!("{}", e);
		}
	}
}
fn send_dummy_to_socket ( address : & str ) { match TcpStream :: connect ( address ) { Ok ( mut stream ) => { let _ = stream . set_read_timeout ( Some ( Duration :: from_millis ( 100 ) ) ) ; let _ = stream . write ( " " . as_bytes ( ) ) ; } , Err ( e ) => { eprintln ! ( " " e ) ; } } }
trigger blocking read to exit loop
trigger blocking read to exit loop
address
&str
address
&str