simple_mdns_client

Crates.iosimple_mdns_client
lib.rssimple_mdns_client
version3.0.0
sourcesrc
created_at2021-04-21 09:55:54.972947
updated_at2021-04-21 13:03:26.123574
descriptionSimple mdns client
homepage
repositoryhttps://github.com/voysys/simple_mdns_client
max_upload_size
id387524
size12,423
Jonathan Nilsson (JoNil)

documentation

https://docs.rs/simple_mdns_client

README

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

Commit count: 9

cargo fmt