IPSingleton

Internet protocol (IP) support functions like DNS resolution.

IP contains support functions for the Internet Protocol (IP). TCP/IP support is in different classes (see StreamPeerTCP and TCP_Server). IP provides DNS hostname resolution support, both blocking and threaded.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
ResolverStatus
enum ResolverStatus
Type
enum Type

Functions

clearCache
void clearCache(StringArg0 hostname)

Removes all of a "hostname"'s cached references. If no "hostname" is given then all cached IP addresses are removed.

eraseResolveItem
void eraseResolveItem(long id)

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.

getLocalAddresses
Array getLocalAddresses()

Returns all of the user's current IPv4 and IPv6 addresses as an array.

getResolveItemAddress
String getResolveItemAddress(long id)

Returns a queued hostname's IP address, given its queue "id". Returns an empty string on error or if resolution hasn't happened yet (see getResolveItemStatus).

getResolveItemStatus
IP.ResolverStatus getResolveItemStatus(long id)

Returns a queued hostname's status as a RESOLVER_STATUS_* constant, given its queue "id".

opAssign
IPSingleton opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(IPSingleton other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
resolveHostname
String resolveHostname(StringArg0 host, long ip_type)

Returns a given hostname's IPv4 or IPv6 address when resolved (blocking-type method). The address type returned depends on the TYPE_* constant given as "ip_type".

resolveHostnameQueueItem
long resolveHostnameQueueItem(StringArg0 host, long ip_type)

Creates a queue item to resolve a hostname to an IPv4 or IPv6 address depending on the TYPE_* constant given as "ip_type". Returns the queue ID if successful, or RESOLVER_INVALID_ID on error.

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
IPSingleton _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta