Translations of this page:
en

User Tools

Site Tools


en:software:ssdpd:index

SSDP announcer for UPnP/DLNA

- a program for announcing the network UPnP/DLNA devices.
Announcements are sent using IPv4 and IPv6 on the special multicast address.

SSDP announcer allows you announce on your LAN any UPnP / DLNA server located on the Internet, another network segment.

UPnP - based on the SSDP announcements for automatic detection of available devices on the local network, and HTTP to communicate with devices it has found.
In HTTP, the data is transmitted using XML-SOAP.

Archive with SSDP announcer contains implementation UPnP / DLNA server on nginx and PHP.
Nginx takes on work with http, php script processes the XML-SOAP requests from client devices.
The script allows browsing through the file system and access to the media which is to be found.

Thanks SSDP announcer can write your own UPnP / DLNA server on any scripting language, which is able to work nginx.

Supported OS

  • FreeBSD
  • Linux

How it works

UPnP clients (eg DLNA for android, VLC under Linux etc), listen to the network multicast announcements and periodically send queries themselves to receive announcements.
Announcements represent a IPv4 / IPv6 multicast UDP packets with HTTP format for content. Requests are sent directly to the announcer.
Announcement contains:

  • UUID - unique device ID;
  • type devices advertised;
  • services offered device;
  • URL for by HTTP-GET XML file detailing the devices and links to XML files, a description of its services.

SSDPd requires specify on which interfaces to work out what URL announce and XML file describing the device.
In this work SSDPd ends. Everything else happens communication client to the server via HTTP.

Client after receiving announcements if he was interested in the type of UPnP devices on the HTTP-GET takes the XML file from the announcement of the URL, parses it, then picks up the XML files describing services.
XML files are static, attached examples in the distribution.

After parsing the XML files the client accesses the services by URL specified in XML files using HTTP, using the methods: POST, SUBSCRIBE, UNSUBSCRIBE.
In a simple case (for a minimum of the functional) processing HTTP request methods SUBSCRIBE, UNSUBSCRIBE amount to granting the 200 + a pair of additional headers this can easily cope nginx.

Multicast addresses

  • 239.255.255.250:1900
  • [FF02::C]:1900 - link local scope
  • [FF05::C]:1900 - site local scope

Setup

wget http://www.netlab.linkpc.net/download/software/ssdpd/ssdpd-1.03.tar.gz
tar -xf ssdpd-1.03.tar.gz
cd ./ssdpd-1.03
./configure
make install
If configure return some errors run: autoreconf -fvi

In the directory:
/rc.d - rc.d script for FreeBSD.
/upnp/ - put/make a symlink in wwwroot web server.
/upnp/descr - contains xml and wsdl files to describe the UPnP MediaServer device version 3 and several services for him.
/ssdpd.conf - example config file.

Settings

Download

License: BSD
ssdpd-1.01.tar.gz
UPnP docs

Donate via Bitcoin Donations may also be sent via Bitcoin to the following address: 19SJ1CE8bDqUc8xgd1eNE5bNkjBKG3Gu38

Support

en/software/ssdpd/index.txt · Last modified: 2016/02/09 22:36 by root