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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?