Crates.io | simple_mdns_client |
lib.rs | simple_mdns_client |
version | 3.0.0 |
source | src |
created_at | 2021-04-21 09:55:54.972947 |
updated_at | 2021-04-21 13:03:26.123574 |
description | Simple mdns client |
homepage | |
repository | https://github.com/voysys/simple_mdns_client |
max_upload_size | |
id | 387524 |
size | 12,423 |
use simple_mdns_client::MdnsClient;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let mdns = MdnsClient::new("libmdns Web Server._http._tcp.local")?;
loop {
println!("{:#?}", mdns.get_services());
std::thread::sleep(std::time::Duration::from_millis(2000));
}
}
Only testet to work with https://github.com/librespot-org/libmdns