Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
deletePortMapping(port:proto:)
Deletes the port mapping identified by the given port and protocol combination on this device. See deletePortMapping(port:proto:)
.
final func deletePortMapping(port: Int32, proto: String = "UDP") -> Int32
Other members in extension
Types
Type members
Instance members
var descriptionUrl: String
URL to the device description.
var igdControlUrl: String
IDG control URL.
var igdOurAddr: String
Address of the local machine in the network connecting it to this
UPNPDevice
.var igdServiceType: String
IGD service type.
var igdStatus: UPNPDevice.IGDStatus
IGD status. See
IGDStatus
.var serviceType: String
Service type.
func addPortMapping(port: Int32, portInternal: Int32, desc: String, proto: String, duration: Int32
) -> Int32 Adds a port mapping to forward the given external port on this
UPNPDevice
for the given protocol to the local machine. SeeaddPortMapping(port:portInternal:desc:proto:duration:)
.func isValidGateway(
) -> Bool Returns
true
if this is a valid IGD (InternetGatewayDevice) which potentially supports port forwarding.func queryExternalAddress(
) -> String Returns the external IP address of this
UPNPDevice
or an empty string.