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 }
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 }