KO
|
EN
gitlite — search
Search
#python
#llm
#tailwindcss
#ai
#react
#typescript
#nextjs
#nodejs
#openai
#automation
#expressjs
#postgresql
tokio-ping
★ 42
Open GitHub ↗
Asynchronous ICMP pinging library
Download README (.md)
Explore Similar Repositories
PingPlugin
:
Plugin for Unreal Engine 4 (UE4) to ICMP ping hosts and obtain results from Blueprint
PingForAndroid
:
C库采用SOCK_DGRAM方式构建icmp包,避开raw socket必须root权限的限制,实现ping功能
pping
:
tcp ping, tls ping, http ping, icmp ping, dns ping, quic ping.
bpfpinger
:
🚥 A high-performance ICMP ping implementation build on top of BPF technology.
CDZPinger
:
Easy-to-use ICMP Ping for iOS (and maybe OSX)
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
tokio-ping
?
Download (.md)
# tokio-ping [](https://travis-ci.org/knsd/tokio-ping) [](https://crates.io/crates/tokio-ping/) [](https://docs.rs/tokio-ping) tokio-ping is an asynchronous ICMP pinging library. # Usage example Note, sending and receiving ICMP packets requires privileges. ```rust extern crate futures; extern crate tokio; extern crate tokio_ping; use futures::{Future, Stream}; fn main() { let addr = std::env::args().nth(1).unwrap().parse().unwrap(); let pinger = tokio_ping::Pinger::new(); let stream = pinger.and_then(move |pinger| Ok(pinger.chain(addr).stream())); let future = stream.and_then(|stream| { stream.take(3).for_each(|mb_time| { match mb_time { Some(time) => println!("time={}", time), None => println!("timeout"), } Ok(()) }) }); tokio::run(future.map_err(|err| { eprintln!("Error: {}", err) })) } ``` # License This project is licensed under either of * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) at your option. ### Contribution Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.