Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
IP¶
Inherits: Object
Internet protocol (IP) support functions such as DNS resolution.
Description¶
IP contains support functions for the Internet Protocol (IP). TCP/IP support is in different classes (see StreamPeerTCP and TCPServer). IP provides DNS hostname resolution support, both blocking and threaded.
Methods¶
void |
clear_cache ( String hostname="" ) |
void |
erase_resolve_item ( int id ) |
get_local_addresses ( ) const |
|
get_local_interfaces ( ) const |
|
get_resolve_item_address ( int id ) const |
|
get_resolve_item_addresses ( int id ) const |
|
get_resolve_item_status ( int id ) const |
|
resolve_hostname ( String host, Type ip_type=3 ) |
|
resolve_hostname_addresses ( String host, Type ip_type=3 ) |
|
resolve_hostname_queue_item ( String host, Type ip_type=3 ) |
Enumerations¶
enum ResolverStatus:
ResolverStatus RESOLVER_STATUS_NONE = 0
DNS hostname resolver status: No status.
ResolverStatus RESOLVER_STATUS_WAITING = 1
DNS hostname resolver status: Waiting.
ResolverStatus RESOLVER_STATUS_DONE = 2
DNS hostname resolver status: Done.
ResolverStatus RESOLVER_STATUS_ERROR = 3
DNS hostname resolver status: Error.
enum Type:
Type TYPE_NONE = 0
Address type: None.