Crate ekko[][src]

Ekko is a simple utility for sending echo requests, giving you (mostly) everything you need.

Example

use ekko::{ error::{EkkoError},
    EkkoResponse,
    Ekko,
};
 
fn main() -> Result<(), EkkoError> {
    let mut ping = Ekko::with_target("rustup.rs")?;
 
    // Send single ..
    for hop in 0..64 {
        match ping.send(hop)? {
 
            EkkoResponse::Destination(data) => {
                println!("{:?}", EkkoResponse::Destination(data));
                break
            }
 
            x => println!("{:?}", x)
        }
    }
 
    // Send batch ..
    for response in ping.trace(0..64)? {
        match response {
 
            EkkoResponse::Destination(data) => {
                println!("{:?}", EkkoResponse::Destination(data));
                break
            }
 
            x => println!("{:?}", x)
        }
    }
 
    Ok(())
}

Modules

error

Structs

Ekko
EkkoData

Enums

EkkoResponse
ParameterProblem
ParameterProblemV4
ParameterProblemV6
Redirect
Unreachable
UnreachableCodeV4
UnreachableCodeV6