Adds more hosts to test
- Ptbo both links - Lnsy both links - Blvl both links Adds lib.rs to allow bins to read common code
This commit is contained in:
@@ -7,19 +7,12 @@ use std::str::FromStr;
|
||||
use std::sync::mpsc;
|
||||
use std::time::{Duration, SystemTime};
|
||||
use clap::Parser;
|
||||
use crate::manager::Manager;
|
||||
use crate::ping_result::PingResult;
|
||||
use crate::state::State;
|
||||
use crate::target_state::TargetState;
|
||||
|
||||
mod manager;
|
||||
mod state;
|
||||
mod target_state;
|
||||
mod ping_result;
|
||||
mod ping_request;
|
||||
|
||||
const SECONDS_BETWEEN_DISPLAY: u32 = 1;
|
||||
const SECONDS_BETWEEN_PING: u32 = 2;
|
||||
use pp::ping_result::PingResult;
|
||||
use pp::ping_request::PingRequest;
|
||||
use pp::manager::Manager;
|
||||
use pp::SECONDS_BETWEEN_DISPLAY;
|
||||
use pp::state::State;
|
||||
use pp::target_state::TargetState;
|
||||
|
||||
fn read_lines<P>(filename: P) -> io::Result<io::Lines<io::BufReader<File>>>
|
||||
where P: AsRef<Path>, {
|
||||
@@ -0,0 +1,9 @@
|
||||
pub mod manager;
|
||||
pub mod ping_request;
|
||||
pub mod ping_result;
|
||||
pub mod state;
|
||||
pub mod target_state;
|
||||
|
||||
|
||||
pub const SECONDS_BETWEEN_DISPLAY: u32 = 1;
|
||||
pub const SECONDS_BETWEEN_PING: u32 = 2;
|
||||
Reference in New Issue
Block a user