aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/huin/goupnp/cmd/example_ssdp_registry/example_ssdp_registry.go
diff options
context:
space:
mode:
Diffstat (limited to 'Godeps/_workspace/src/github.com/huin/goupnp/cmd/example_ssdp_registry/example_ssdp_registry.go')
-rw-r--r--Godeps/_workspace/src/github.com/huin/goupnp/cmd/example_ssdp_registry/example_ssdp_registry.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/Godeps/_workspace/src/github.com/huin/goupnp/cmd/example_ssdp_registry/example_ssdp_registry.go b/Godeps/_workspace/src/github.com/huin/goupnp/cmd/example_ssdp_registry/example_ssdp_registry.go
deleted file mode 100644
index 05f0df003..000000000
--- a/Godeps/_workspace/src/github.com/huin/goupnp/cmd/example_ssdp_registry/example_ssdp_registry.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package main
-
-import (
- "log"
-
- "github.com/huin/goupnp/ssdp"
-)
-
-func main() {
- c := make(chan ssdp.Update)
- srv, reg := ssdp.NewServerAndRegistry()
- reg.AddListener(c)
- go listener(c)
- if err := srv.ListenAndServe(); err != nil {
- log.Print("ListenAndServe failed: ", err)
- }
-}
-
-func listener(c <-chan ssdp.Update) {
- for u := range c {
- if u.Entry != nil {
- log.Printf("Event: %v USN: %s Entry: %#v", u.EventType, u.USN, *u.Entry)
- } else {
- log.Printf("Event: %v USN: %s Entry: <nil>", u.EventType, u.USN)
- }
- }
-}