IGDStatus
UPNPDevice.swift:19enum IGDStatusenum IGDStatusimport SwiftGodotFramework to write Godot Game Extensions using the Swift Programming Language.
class UPNPDeviceUniversal Plug and Play (UPnP) device.
case okOK.
case httpErrorHTTP error.
case httpEmptyEmpty HTTP response.
case noUrlsReturned response contained no URLs.
case noIgdNot a valid IGD.
case disconnectedDisconnected.
case unknownDeviceUnknown device.
case invalidControlInvalid control.
case mallocErrorMemory allocation error.
case unknownErrorUnknown error.
override class var godotClassName: StringName { get }final var descriptionUrl: String { get set }URL to the device description.
final var igdControlUrl: String { get set }IDG control URL.
final var igdOurAddr: String { get set }Address of the local machine in the network connecting it to this UPNPDevice.
final var igdServiceType: String { get set }IGD service type.
final var igdStatus: UPNPDevice.IGDStatus { get set }IGD status. See IGDStatus.
final var serviceType: String { get set }Service type.
final func addPortMapping(port: Int32, portInternal: Int32 = 0, desc: String = "", proto: String = "UDP", duration: Int32 = 0) -> Int32 Adds a port mapping to forward the given external port on this UPNPDevice for the given protocol to the local machine. See addPortMapping(port:portInternal:desc:proto:duration:).
final func deletePortMapping(port: Int32, proto: String = "UDP") -> Int32 Deletes the port mapping identified by the given port and protocol combination on this device. See deletePortMapping(port:proto:).
final func isValidGateway() -> Bool Returns true if this is a valid IGD (InternetGatewayDevice) which potentially supports port forwarding.
final func queryExternalAddress() -> String Returns the external IP address of this UPNPDevice or an empty string.
protocol CaseIterableA type that provides a collection of all of its values.
protocol CustomDebugStringConvertibleA type with a customized textual representation suitable for debugging purposes.
protocol EquatableA type that can be compared for value equality.
protocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol RawRepresentable<RawValue>A type that can be converted to and from an associated raw value.
init?(rawValue: Int64) var debugDescription: String { get }A textual representation of this instance, suitable for debugging
var hashValue: Int { get }static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)