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

Download history 43/week @ 2024-09-08 2/week @ 2024-09-15 38/week @ 2024-09-29 1/week @ 2024-10-06 14/week @ 2024-10-27 164/week @ 2024-11-17 56/week @ 2024-11-24 15/week @ 2024-12-01 16/week @ 2024-12-08

251 downloads per month

0BSD license

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