#networking #async-networking #protocols #ssdp

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

#657 in Network programming

Download history 1778/week @ 2023-11-20 1749/week @ 2023-11-27 2718/week @ 2023-12-04 3413/week @ 2023-12-11 3224/week @ 2023-12-18 1603/week @ 2023-12-25 4422/week @ 2024-01-01 4225/week @ 2024-01-08 2811/week @ 2024-01-15 3867/week @ 2024-01-22 3267/week @ 2024-01-29 3081/week @ 2024-02-05 4128/week @ 2024-02-12 3198/week @ 2024-02-19 4822/week @ 2024-02-26 9508/week @ 2024-03-04

21,857 downloads per month
Used in 6 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–12MB
~102K SLoC