geph4-client 4.4.18

Geph client
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::sync::{atomic::AtomicU32, Arc};

use once_cell::sync::Lazy;

// sosistab stats
static SOSISTAB_STATS: Lazy<Arc<sosistab::StatsGatherer>> =
    Lazy::new(|| Arc::new(sosistab::StatsGatherer::new_active()));

/// Gets the global sosistab gatherer
pub fn global_sosistab_stats() -> Arc<sosistab::StatsGatherer> {
    Arc::clone(&SOSISTAB_STATS)
}

/// Ping gatherer
pub static LAST_PING_MS: AtomicU32 = AtomicU32::new(0);