Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
IGDStatus
UPNPDevice.swift:13enum IGDStatus
Cases
case ok
OK.
case httpError
HTTP error.
case httpEmpty
Empty HTTP response.
case noUrls
Returned response contained no URLs.
case noIgd
Not a valid IGD.
case disconnected
Disconnected.
case unknownDevice
Unknown device.
case invalidControl
Invalid control.
case mallocError
Memory allocation error.
case unknownError
Unknown error.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (11) members.
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 deletePortMapping(port: Int32, proto: String
) -> Int32 Deletes the port mapping identified by the given port and protocol combination on this device. See
deletePortMapping(port:proto:)
.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.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A 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.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.