| Crates.io | simple_mdns_client |
| lib.rs | simple_mdns_client |
| version | 4.0.0 |
| created_at | 2021-04-21 09:55:54.972947+00 |
| updated_at | 2024-11-22 13:24:37.590715+00 |
| description | Simple mdns client |
| homepage | |
| repository | https://github.com/voysys/simple_mdns_client |
| max_upload_size | |
| id | 387524 |
| size | 16,475 |
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