1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! ICMP protocol support and implementations.
//!
//! This package is useful for sending and receiving packets
//! over the Internet Control Message Protocol (ICMP). It
//! currently offers a simple API and implementation for `ping`.
//!
//! ## Installation
//!
//! Add this to your `Cargo.toml`:
//!
//! ```toml
//! [dependencies]
//! libicmp = "0.1.1"
//! ```
//!
//! ## Examples
//!
//! ```
//! use libicmp::PingBuilder;
//!
//! let p = PingBuilder::new()
//! .host("127.0.0.1")
//! .num_pings(5)
//! .interval_secs(1)
//! .timeout_secs(5)
//! .debug(true)
//! .build();
//! p.ping();
//! ```
extern crate nix;
extern crate libc;
extern crate rand;
extern crate byteorder;
pub use Icmp;
pub use PingBuilder;