Documentation
¶
Overview ¶
SSDP (Simple Service Discovery Protocol) package provides an implementation of the SSDP specification.
Index ¶
Constants ¶
View Source
const ( // The port for SSDP discovery Port = 1900 // The IP for SSDP broadcast BroadcastIP = "239.255.255.250" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
SpecVersion SpecVersion `xml:"specVersion"`
URLBase string `xml:"URLBase"`
DeviceType string `xml:"device>deviceType"`
FriendlyName string `xml:"device>friendlyName"`
Manufacturer string `xml:"device>manufacturer"`
ManufacturerURL string `xml:"device>manufacturerURL"`
ModelDescription string `xml:"device>modelDescription"`
ModelName string `xml:"device>modelName"`
ModelNumber string `xml:"device>modelNumber"`
ModelURL string `xml:"device>modelURL"`
SerialNumber string `xml:"device>serialNumber"`
UDN string `xml:"device>UDN"`
UPC string `xml:"device>UPC"`
PresentationURL string `xml:"device>presentationURL"`
Icons []Icon `xml:"device>iconList>icon"`
}
type SearchResponse ¶
type SearchResponse struct {
Control string
Server string
ST string
Ext string
USN string
Location *url.URL
Date time.Time
ResponseAddr *net.UDPAddr
}
The search response from a device implementing SSDP.
type SpecVersion ¶
Click to show internal directories.
Click to hide internal directories.