Enter this text to your Cargo.toml
file:
toml
[dependencies]
anevicon_core = "*"
And this one to your src/main.rs
source:
```rust
use aneviconcore::summary::TestSummary;
use aneviconcore::testing::execute;
// Setup the socket connected to the example.com domain let socket = std::net::UdpSocket::bind("0.0.0.0:0").unwrap(); socket .connect("93.184.216.34:80") .expect("Cannot connect the socket to example.com");
let mut summary = TestSummary::default();
// Execute a test that will send one thousand packets // each containing 32768 bytes. execute(&socket, &vec![0; 32768], &mut summary) .take(1000) .for_each(|result| { if let Err(error) = result { panic!("{}", error); } });
println!( "The total seconds passed: {}", summary.timepassed().assecs() ); ```