4 stable releases

3.0.0 Apr 21, 2021
2.0.0 Apr 21, 2021
1.1.0 Apr 21, 2021
1.0.0 Apr 21, 2021

#29 in #mdns

0BSD license

9KB
206 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

~360–610KB