- addPortMapping
long addPortMapping(long port, long port_internal, StringArg2 desc, StringArg3 proto, long duration)
Adds a port mapping to forward the given external port on this UPNPDevice for the given protocol to the local machine. See UPNP.addPortMapping.
- deletePortMapping
long deletePortMapping(long port, StringArg1 proto)
Deletes the port mapping identified by the given port and protocol combination on this device. See UPNP.deletePortMapping.
- getDescriptionUrl
String getDescriptionUrl()
- getIgdControlUrl
String getIgdControlUrl()
- getIgdOurAddr
String getIgdOurAddr()
- getIgdServiceType
String getIgdServiceType()
- getIgdStatus
UPNPDevice.IGDStatus getIgdStatus()
- getServiceType
String getServiceType()
- isValidGateway
bool isValidGateway()
Returns true if this is a valid IGD (InternetGatewayDevice) which potentially supports port forwarding.
- opAssign
UPNPDevice opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(UPNPDevice other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- queryExternalAddress
String queryExternalAddress()
Returns the external IP address of this UPNPDevice or an empty string.
- setDescriptionUrl
void setDescriptionUrl(StringArg0 url)
- setIgdControlUrl
void setIgdControlUrl(StringArg0 url)
- setIgdOurAddr
void setIgdOurAddr(StringArg0 addr)
- setIgdServiceType
void setIgdServiceType(StringArg0 type)
- setIgdStatus
void setIgdStatus(long status)
- setServiceType
void setServiceType(StringArg0 type)
- descriptionUrl
String descriptionUrl [@property getter]
String descriptionUrl [@property setter]
URL to the device description.
- igdControlUrl
String igdControlUrl [@property getter]
String igdControlUrl [@property setter]
- igdOurAddr
String igdOurAddr [@property getter]
String igdOurAddr [@property setter]
Address of the local machine in the network connecting it to this UPNPDevice.
- igdServiceType
String igdServiceType [@property getter]
String igdServiceType [@property setter]
- igdStatus
UPNPDevice.IGDStatus igdStatus [@property getter]
long igdStatus [@property setter]
IGD status. See igdstatus.
- serviceType
String serviceType [@property getter]
String serviceType [@property setter]
UPNP device.
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.