nervoku v0.1.1 SSDP
Implements a simple discovery client for SSDP, not the full UPNP spec.
- Supports M-SEARCH and gathering unicast responses.
- Does not support prolonged listens and gathered notifies at this time.
Link to this section Summary
Functions
Issue an SSDP "M-SEARCH" request to the network, and listen for a bit for
responses, reporting back discovered nodes in a hash.
Parameters is Dict with the following defined keyword atoms:
target
- the search target, as defined by the ssdp spec. Defaults to "ssdp:all"
seconds
- sent with the search request to tell nodes how long they have to
respond. Defaults to 2.
slack
- Number of milliseconds to wait after the seconds parameter for responses.
Defaults to 250, but can be set higher for high-latency networks
M-SEARCH * HTTP/1.1 Host: 239.255.255.250:1900 Man: "ssdp:discover" ST: roku:ecp
Link to this section Functions
discover(params \\ [])
Issue an SSDP "M-SEARCH" request to the network, and listen for a bit for
responses, reporting back discovered nodes in a hash.
Parameters is Dict with the following defined keyword atoms:
target
- the search target, as defined by the ssdp spec. Defaults to "ssdp:all"
seconds
- sent with the search request to tell nodes how long they have to
respond. Defaults to 2.
slack
- Number of milliseconds to wait after the seconds parameter for responses.
Defaults to 250, but can be set higher for high-latency networks
roku()
M-SEARCH * HTTP/1.1 Host: 239.255.255.250:1900 Man: "ssdp:discover" ST: roku:ecp