Documentation ¶
Overview ¶
Package igdp implements then Internet Gateway Device Protocol to handle communication with a uPNP device to open an external port for NAT Traversal.
Index ¶
Constants ¶
View Source
const ErrNoLocalIP = errors.String("No local IP")
ErrNoLocalIP error will occure when a local IP cannot be determined
Variables ¶
View Source
var Control string
Control protocol to use in requests
View Source
var ControlURL string
ControlURL is the url on URLBase to send requests
View Source
var ExternalIP string
ExternalIP that the uPNP device presents to the rest of the internet. Populated by calling GetExternalIP
View Source
var LocalIP string
LocalIP address
View Source
var Location string
Location to request device description
View Source
var URLBase string
URLBase IP and port for communication with uPNP device
Functions ¶
func AddPortMapping ¶
AddPortMapping maps a local port to a port on the ExternalIP.
func GetExternalIP ¶
GetExternalIP will populate ExternalIP. The value is also returned, along with an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.