rust tiny-ping
Ping function implemented in rust, made for small compile times.
Small async ICMP library. No proc macros.
Usage
use ;
use Pinger;
# async
For multicast or other cases where more than one host may reply to a single
request, use ping_replies:
use ;
use ;
# async
Raw sockets usually need root or capabilities.
DGRAM sockets can work without that on some systems:
use IpAddr;
use ;
# async
Tests
Real ping tests are opt-in with TINY_PING_RUN_NET_TESTS=1 or
TINY_PING_RUN_RAW_TESTS=1.
License
This library contains codes from https://github.com/knsd/tokio-ping, which is licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
And other codes is licensed under
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)