Debian Codegraph @

debian/control

raw symbols SCIP
1 Source: golang-github-nebulouslabs-go-upnp
2 Standards-Version: 4.7.2
3 Maintainer: Debian Go Packaging Team <[email protected]>
4 Uploaders:
5 Free Ekanayaka <[email protected]>,
6 Section: golang
7 Testsuite: autopkgtest-pkg-go
8 Priority: optional
9 Build-Depends:
10 debhelper-compat (= 13),
11 dh-golang,
12 golang-go,
13 golang-golang-x-net-dev,
14 golang-github-huin-goupnp-dev,
15 golang-github-nebulouslabs-fastrand-dev,
16 golang-github-dchest-blake2b-dev,
17 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-nebulouslabs-go-upnp
18 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-nebulouslabs-go-upnp.git
19 Homepage: https://github.com/nebulouslabs/go-upnp
20 XS-Go-Import-Path: github.com/NebulousLabs/go-upnp
21
22 Package: golang-github-nebulouslabs-go-upnp-dev
23 Architecture: all
24 Depends:
25 ${shlibs:Depends},
26 ${misc:Depends},
27 golang-go,
28 golang-golang-x-net-dev,
29 Description: Opinionated interface to Internet Gateway Devices
30 The upnp package upnp provides a simple and opinionated interface to
31 UPnP-enabled routers, allowing users to forward ports and discover their
32 external IP address.
33 .
34 Specific quirks:
35 .
36 - When attempting to discover UPnP-enabled routers on the network, only
37 the first such router is returned. If you have multiple routers, this may
38 cause some trouble. But why would you do that?
39 - Forwarded ports are always symmetric, e.g. the router's port 9980 will
40 be mapped to the client's port 9980. This will be unacceptable for some
41 purposes, but too bad. Symmetric mappings are the desired behavior 99%
42 of the time, and they save a function argument.
43 - TCP and UDP protocols are forwarded together.
44 - Ports are forwarded permanently. Some other implementations lease a port
45 mapping for a set duration, and then renew it periodically. This is nice,
46 because it means mappings won't stick around after they've served their
47 purpose. Unfortunately, some routers only support permanent mappings,
48 so this package has chosen to support the lowest common denominator. To
49 un-forward a port, you must use the Clear function (or do it manually).
50 .
51 Once you've discovered your router, you can retrieve its address by
52 calling its Location method. This address can be supplied to Load
53 to connect to the router directly, which is much faster than calling
54 Discover.
55 .
56 See the godoc (http://godoc.org/github.com/NebulousLabs/upnp) for full
57 documentation.