simple_mdns_client

Crates.iosimple_mdns_client
lib.rssimple_mdns_client
version4.0.0
sourcesrc
created_at2021-04-21 09:55:54.972947
updated_at2024-11-22 13:24:37.590715
descriptionSimple mdns client
homepage
repositoryhttps://github.com/voysys/simple_mdns_client
max_upload_size
id387524
size16,475
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: 15

cargo fmt