#service-discovery #async-networking #networking #protocols #ssdp #async

ssdp-client

An asynchronous library for discovering, notifying and subscribing to devices and services on a network

12 releases (2 stable)

2.0.0 Sep 16, 2023
1.0.0 Dec 23, 2020
0.6.2 Nov 12, 2020
0.5.3 Apr 26, 2020
0.4.0 Jul 31, 2019

#1823 in Network programming

Download history 8540/week @ 2024-06-17 6207/week @ 2024-06-24 8042/week @ 2024-07-01 9158/week @ 2024-07-08 7637/week @ 2024-07-15 7218/week @ 2024-07-22 6911/week @ 2024-07-29 4624/week @ 2024-08-05 1023/week @ 2024-08-12 978/week @ 2024-08-19 951/week @ 2024-08-26 722/week @ 2024-09-02 1028/week @ 2024-09-09 2960/week @ 2024-09-16 3555/week @ 2024-09-23 3814/week @ 2024-09-30

11,435 downloads per month
Used in 11 crates (3 directly)

MIT/Apache

20KB
396 lines

Build Status GitHub last commit Crates.io

ssdp-client

An asynchronous library for discovering, notifying and subscribing to devices and services on a network.

SSDP stands for Simple Service Discovery Protocol and it is a protocol that distributes messages across a local network for devices and services to discover each other. SSDP can most commonly be found in devices that implement UPnP as it is used as the discovery mechanism for that standard.

Technical Specification: http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v2.0.pdf

Example usage:

use futures::prelude::*;
use std::time::Duration;
use ssdp_client::SearchTarget;

let search_target = SearchTarget::RootDevice;
let mut responses = ssdp_client::search(&search_target, Duration::from_secs(3), 2).await?;

while let Some(response) = responses.next().await {
    println!("{:?}", response?);
}

License

Licensed under either of

at your option.

Contribution

Please use rustfmt before any pull requests.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2–10MB
~93K SLoC