Struct UPNPDevice
UPNP device.
struct UPNPDevice
;
See UPNP
for UPNP discovery and utility functions. Provides low-level access to UPNP control commands. Allows to manage port mappings (port forwarding) and to query network information of the device (like local and external IP address and status). Note that methods on this class are synchronous and block the calling thread.
Properties
Name | Type | Description |
---|---|---|
descriptionUrl [get, set]
|
String | URL to the device description. |
igdControlUrl [get, set]
|
String | IDG control URL. |
igdOurAddr [get, set]
|
String | Address of the local machine in the network connecting it to this UPNPDevice .
|
igdServiceType [get, set]
|
String | IGD service type. |
igdStatus [get, set]
|
UPNPDevice | IGD status. See igdstatus .
|
serviceType [get, set]
|
String | Service type. |
Methods
Name | Description |
---|---|
addPortMapping
|
Adds a port mapping to forward the given external port on this UPNPDevice for the given protocol to the local machine. See UPNP .
|
deletePortMapping
|
Deletes the port mapping identified by the given port and protocol combination on this device. See UPNP .
|
getDescriptionUrl
|
|
getIgdControlUrl
|
|
getIgdOurAddr
|
|
getIgdServiceType
|
|
getIgdStatus
|
|
getServiceType
|
|
isValidGateway
|
Returns true if this is a valid IGD (InternetGatewayDevice) which potentially supports port forwarding.
|
queryExternalAddress
|
Returns the external IP address of this UPNPDevice or an empty string.
|
setDescriptionUrl
|
|
setIgdControlUrl
|
|
setIgdOurAddr
|
|
setIgdServiceType
|
|
setIgdStatus
|
|
setServiceType
|
Enums
Name | Description |
---|---|
Constants
|
|
IGDStatus
|