mirror of
https://github.com/edera-dev/krata.git
synced 2026-11-04 21:22:20 +00:00
network: inter-container networking support
This commit is contained in:
9 files changed
+515
-166
No files matched your search
@@ -0,0 +1,13 @@
|
||||
use std::{thread::sleep, time::Duration};
|
||||
|
||||
use anyhow::Result;
|
||||
use hyphanet::autonet::AutoNetworkCollector;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let mut collector = AutoNetworkCollector::new()?;
|
||||
loop {
|
||||
let changeset = collector.read_changes()?;
|
||||
println!("{:?}", changeset);
|
||||
sleep(Duration::from_secs(2));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user