- addPortMapping
long addPortMapping(long port, long port_internal, String desc, String 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, String 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
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(UPNPDevice other)
- opEquals
bool opEquals(typeof(null) n)
- queryExternalAddress
String queryExternalAddress()
Returns the external IP address of this UPNPDevice or an empty string.
- setDescriptionUrl
void setDescriptionUrl(String url)
- setIgdControlUrl
void setIgdControlUrl(String url)
- setIgdOurAddr
void setIgdOurAddr(String addr)
- setIgdServiceType
void setIgdServiceType(String type)
- setIgdStatus
void setIgdStatus(long status)
- setServiceType
void setServiceType(String type)
- toHash
size_t toHash()
- 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.