Crates.io | cotton-ssdp |
lib.rs | cotton-ssdp |
version | 0.0.4 |
source | src |
created_at | 2023-03-29 14:23:05.599725 |
updated_at | 2024-09-27 12:57:08.160673 |
description | Implementing SSDP, the Simple Service Discovery Protocol |
homepage | https://github.com/pdh11/cotton |
repository | https://github.com/pdh11/cotton |
max_upload_size | |
id | 824138 |
size | 226,304 |
Part of the Cotton project.
Implementing SSDP, the Simple Service Discovery Protocol
The cotton-ssdp crate encapsulates a client and server for the Simple Service Discovery Protocol (SSDP), a mechanism for discovering available resources (services) on local networks. A resource might be a streaming-media server, or a router, or a network printer, or anything else that someone might want to search for or enumerate on a network.
What is advertised, or discovered, is, for each resource, a unique identifier for that particular resource (Unique Service Name, USN), an identifier for the type of resource (Notification Type, NT), and the location of the resource in the form of a URL.
SSDP is mainly used by UPnP (Universal Plug-'n'-Play) systems, such as for media libraries and local streaming of music and video -- but the mechanism is quite generic, and could as easily be used for any type of device or resource that must be discoverable over a network, including in ad hoc settings which don't necessarily have expert network administrators close at hand.
At present this crate requires the "nix" crate (except when used in no_std builds) and so is unlikely to work on Windows platforms. It is tested only on AMD64 and ARM64 Linux.
Library documentation is on docs.rs.