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:
Trevor Merritt 2025-04-21 08:08:05 -04:00
parent 03de859764
commit 11618c0d0a
5 changed files with 28 additions and 14 deletions

View File

@ -5,3 +5,9 @@
10.12.22.1
8.8.8.8
1.1.1.1
24.51.235.162
99.214.0.92
216.234.202.122
24.143.184.98
192.186.110.6
129.222.197.36

View File

@ -5,3 +5,9 @@
10.12.32.1
8.8.8.8
1.1.1.1
24.51.235.162
99.214.0.92
216.234.202.122
24.143.184.98
192.186.110.6
129.222.197.36

View File

@ -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>, {

9
src/lib.rs Normal file
View File

@ -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;