Exemplo n.º 1
0
func ConnectReciva(dev ssdp.Device, reactor upnp.Reactor, flags int) (reciva *Reciva) {
	if svc_map, err := upnp.Describe(dev.Location()); nil != err {
		panic(err)
	} else {
		reciva = MakeReciva(svc_map, reactor, flags)
	}
	return
}
Exemplo n.º 2
0
func Connect(dev ssdp.Device, reactor upnp.Reactor, flags int) (sonos *Sonos) {
	if svc_map, err := upnp.Describe(dev.Location()); nil != err {
		panic(err)
	} else {
		sonos = MakeSonos(svc_map, reactor, flags)
	}
	return
}