goupnp

UPnP client library for Go (#golang)

  • 所有者: huin/goupnp
  • 平台:
  • 许可证: BSD 2-Clause "Simplified" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

goupnp is a UPnP client library for Go

Installation

Run go get -u github.com/huin/goupnp.

Documentation

Supported DCPs (you probably want to start with one of these):

  • GoDoc av1 - Client for UPnP Device Control Protocol MediaServer v1 and MediaRenderer v1.
  • GoDoc internetgateway1 - Client for UPnP Device Control Protocol Internet Gateway Device v1.
  • GoDoc internetgateway2 - Client for UPnP Device Control Protocol Internet Gateway Device v2.

Core components:

  • GoDoc (goupnp) core library - contains datastructures and utilities typically used by the implemented DCPs.
  • GoDoc httpu HTTPU implementation, underlies SSDP.
  • GoDoc ssdp SSDP client implementation (simple service discovery protocol) - used to discover UPnP services on a network.
  • GoDoc soap SOAP client implementation (simple object access protocol) - used to communicate with discovered services.

Regenerating dcps generated source code:

  1. Build code generator:

    go get -u github.com/huin/goupnp/cmd/goupnpdcpgen

  2. Regenerate the code:

    go generate ./...

Supporting additional UPnP devices and services:

Supporting additional services is, in the trivial case, simply a matter of
adding the service to the dcpMetadata whitelist in cmd/goupnpdcpgen/metadata.go,
regenerating the source code (see above), and committing that source code.

However, it would be helpful if anyone needing such a service could test the
service against the service they have, and then reporting any trouble
encountered as an issue on this
project
. If it just works, then
please report at least minimal working functionality as an issue, and
optionally contribute the metadata upstream.

主要指标

概览
名称与所有者huin/goupnp
主编程语言Go
编程语言Go (语言数: 2)
平台
许可证BSD 2-Clause "Simplified" License
所有者活动
创建于2013-09-26 22:09:52
推送于2025-04-27 14:11:54
最后一次提交
发布数7
最新版本名称v1.3.0 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数445
关注者数11
派生数86
提交数246
已启用问题?
问题数27
打开的问题数3
拉请求数33
打开的拉请求数1
关闭的拉请求数4
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?