| 1 | goupnp is a UPnP client library for Go |
| 2 | |
| 3 | Installation |
| 4 | ------------ |
| 5 | |
| 6 | Run `go get -u github.com/huin/goupnp`. |
| 7 | |
| 8 | Documentation |
| 9 | ------------- |
| 10 | |
| 11 | Supported DCPs (you probably want to start with one of these): |
| 12 | |
| 13 | * [ av1](https://godoc.org/github.com/huin/goupnp/dcps/av1) - Client for UPnP Device Control Protocol MediaServer v1 and MediaRenderer v1. |
| 14 | * [ internetgateway1](https://godoc.org/github.com/huin/goupnp/dcps/internetgateway1) - Client for UPnP Device Control Protocol Internet Gateway Device v1. |
| 15 | * [ internetgateway2](https://godoc.org/github.com/huin/goupnp/dcps/internetgateway2) - Client for UPnP Device Control Protocol Internet Gateway Device v2. |
| 16 | |
| 17 | Core components: |
| 18 | |
| 19 | * [ (goupnp)](https://godoc.org/github.com/huin/goupnp) core library - contains datastructures and utilities typically used by the implemented DCPs. |
| 20 | * [ httpu](https://godoc.org/github.com/huin/goupnp/httpu) HTTPU implementation, underlies SSDP. |
| 21 | * [ ssdp](https://godoc.org/github.com/huin/goupnp/ssdp) SSDP client implementation (simple service discovery protocol) - used to discover UPnP services on a network. |
| 22 | * [ soap](https://godoc.org/github.com/huin/goupnp/soap) SOAP client implementation (simple object access protocol) - used to communicate with discovered services. |
| 23 | |
| 24 | |
| 25 | Regenerating dcps generated source code: |
| 26 | ---------------------------------------- |
| 27 | |
| 28 | 1. Install gotasks: `go get -u github.com/jingweno/gotask` |
| 29 | 2. Change to the gotasks directory: `cd gotasks` |
| 30 | 3. Run specgen task: `gotask specgen` |
| 31 | |
| 32 | Supporting additional UPnP devices and services: |
| 33 | ------------------------------------------------ |
| 34 | |
| 35 | Supporting additional services is, in the trivial case, simply a matter of |
| 36 | adding the service to the `dcpMetadata` whitelist in `gotasks/specgen_task.go`, |
| 37 | regenerating the source code (see above), and committing that source code. |
| 38 | |
| 39 | However, it would be helpful if anyone needing such a service could test the |
| 40 | service against the service they have, and then reporting any trouble |
| 41 | encountered as an [issue on this |
| 42 | project](https://github.com/huin/goupnp/issues/new). If it just works, then |
| 43 | please report at least minimal working functionality as an issue, and |
| 44 | optionally contribute the metadata upstream. |