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

#754 in Network programming

Download history 14/week @ 2024-12-10 2/week @ 2024-12-31 3/week @ 2025-01-07 1/week @ 2025-01-14 2/week @ 2025-02-11 2/week @ 2025-02-18 5/week @ 2025-02-25 4/week @ 2025-03-04 25/week @ 2025-03-11 1/week @ 2025-03-18 20/week @ 2025-03-25

52 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
~40K SLoC