5 stable releases (3 major)
4.0.0 | Nov 22, 2024 |
---|---|
3.0.0 | Apr 21, 2021 |
2.0.0 | Apr 21, 2021 |
1.1.0 | Apr 21, 2021 |
1.0.0 | Apr 21, 2021 |
#10 in #mdns
251 downloads per month
11KB
255 lines
Simple mdns client
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
Dependencies
~0.4–7MB
~48K SLoC