Documentation ¶
Overview ¶
upnp functions to open ports on router
Index ¶
Constants ¶
View Source
const ( BroadcastRetryCount = 3 BroadcastWaitTimeSeconds = 3 ServiceType = "urn:schemas-upnp-org:service:WANIPConnection:1" )
Variables ¶
This section is empty.
Functions ¶
func GetLocalAddress ¶
Types ¶
type Service ¶
type Service struct { ServiceType string `xml:"serviceType"` //ServiceId string `xml:"serviceId"` //SCPDURL string `xml:"SCPDURL"` ControlURL string `xml:"controlURL"` }
Device Description xml elements
type UPNP ¶
type UPNP struct {
Gateway *Gateway
}
func (*UPNP) AddPortMapping ¶
AddPortMapping to the WAN/Internet
func (*UPNP) DeviceDesc ¶
Click to show internal directories.
Click to hide internal directories.