Enumerationmigueldeicaza.swiftgodot 0.46.0SwiftGodot
GType
IP.swift:49enum GType
Cases
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (15) members.
Types
Type members
static let resolverInvalidId: Int
Invalid ID constant. Returned if
resolverMaxQueries
is exceeded.static let resolverMaxQueries: Int
Maximum number of concurrent DNS resolver queries allowed,
resolverInvalidId
is returned if exceeded.static func clearCache(hostname: String
) Removes all of a
hostname
’s cached references. If nohostname
is given, all cached IP addresses are removed.static func eraseResolveItem(id: Int32
) Removes a given item
id
from the queue. This should be used to free a queue after it has completed to enable more queries to happen.static func getLocalAddresses(
) -> PackedStringArray Returns all the user’s current IPv4 and IPv6 addresses as an array.
static func getLocalInterfaces(
) -> VariantCollection<GDictionary> Returns all network adapters as an array.
static func getResolveItemAddress(id: Int32
) -> String Returns a queued hostname’s IP address, given its queue
id
. Returns an empty string on error or if resolution hasn’t happened yet (seegetResolveItemStatus(id:)
).static func getResolveItemAddresses(id: Int32
) -> GArray Returns resolved addresses, or an empty array if an error happened or resolution didn’t happen yet (see
getResolveItemStatus(id:)
).static func getResolveItemStatus(id: Int32
) -> IP.ResolverStatus Returns a queued hostname’s status as a
ResolverStatus
constant, given its queueid
.static func resolveHostname(host: String, ipType: IP.GType
) -> String Returns a given hostname’s IPv4 or IPv6 address when resolved (blocking-type method). The address type returned depends on the
IP/Type
constant given asipType
.static func resolveHostnameAddresses(host: String, ipType: IP.GType
) -> PackedStringArray Resolves a given hostname in a blocking way. Addresses are returned as an
GArray
of IPv4 or IPv6 addresses depending onipType
.static func resolveHostnameQueueItem(host: String, ipType: IP.GType
) -> Int32 Creates a queue item to resolve a hostname to an IPv4 or IPv6 address depending on the
IP/Type
constant given asipType
. Returns the queue ID if successful, orresolverInvalidId
on error.class var godotClassName: StringName
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.