Update docs to IPv6

(cherry picked from commit 7f42da0330)
This commit is contained in:
Fabio Alessandrelli 2016-10-29 03:53:24 +02:00
parent 2fff8e8cde
commit 3f6fe2f3f1
1 changed files with 26 additions and 8 deletions

View File

@ -15596,8 +15596,10 @@
</return> </return>
<argument index="0" name="host" type="String"> <argument index="0" name="host" type="String">
</argument> </argument>
<argument index="1" name="ip_type" type="int" default="int.IP_TYPE_ANY">
</argument>
<description> <description>
Resolve a given hostname, blocking. Resolved hostname is returned as an IP. Resolve a given hostname, blocking. Resolved hostname is returned as an IPv4 or IPv6 depending on "ip_type".
</description> </description>
</method> </method>
<method name="resolve_hostname_queue_item"> <method name="resolve_hostname_queue_item">
@ -15605,8 +15607,10 @@
</return> </return>
<argument index="0" name="host" type="String"> <argument index="0" name="host" type="String">
</argument> </argument>
<argument index="1" name="ip_type" type="int" default="int.IP_TYPE_ANY">
</argument>
<description> <description>
Create a queue item for resolving a given hostname. The queue ID is returned, or RESOLVER_INVALID_ID on error. Create a queue item for resolving a given hostname to an IPv4 or IPv6 depending on "ip_type". The queue ID is returned, or RESOLVER_INVALID_ID on error.
</description> </description>
</method> </method>
</methods> </methods>
@ -24540,10 +24544,15 @@
</return> </return>
<argument index="0" name="port" type="int"> <argument index="0" name="port" type="int">
</argument> </argument>
<argument index="1" name="recv_buf_size" type="int" default="65536"> <argument index="1" name="ip_type" type="int" default="int.IP_TYPE_ANY">
</argument>
<argument index="2" name="recv_buf_size" type="int" default="65536">
</argument> </argument>
<description> <description>
Make this [PacketPeerUDP] listen on the "port" using a buffer size "recv_buf_size". Listens on all available adresses. Make this [PacketPeerUDP] listen on the "port" using protocol "ip_type" and a buffer size "recv_buf_size". Listens on all available adresses.
IP_TYPE_IPV4 = IPv4 only
IP_TYPE_IPV6 = IPv6 only
IP_TYPE_ANY = Dual stack (supports both IPv6 and IPv4 connections).
</description> </description>
</method> </method>
<method name="set_send_address"> <method name="set_send_address">
@ -24553,8 +24562,10 @@
</argument> </argument>
<argument index="1" name="port" type="int"> <argument index="1" name="port" type="int">
</argument> </argument>
<argument index="2" name="ip_type" type="int" default="int.IP_TYPE_ANY">
</argument>
<description> <description>
Set the destination address and port for sending packets and variables, a hostname will be resolved if valid. Set the destination address and port for sending packets and variables, a hostname will be resolved using "ip_type" (v4/v6/any) if valid.
</description> </description>
</method> </method>
<method name="wait"> <method name="wait">
@ -38119,8 +38130,10 @@
</argument> </argument>
<argument index="1" name="port" type="int"> <argument index="1" name="port" type="int">
</argument> </argument>
<argument index="2" name="ip_type" type="int" default="int.IP_TYPE_ANY">
</argument>
<description> <description>
Connect to the specified IP:port pair. Returns [OK] on success or [FAILED] on failure. Connect to the specified host:port pair. A hostname will be resolved using "ip_type" (v4/v6/any) if valid. Returns [OK] on success or [FAILED] on failure.
</description> </description>
</method> </method>
<method name="disconnect"> <method name="disconnect">
@ -39631,10 +39644,15 @@
</return> </return>
<argument index="0" name="port" type="int"> <argument index="0" name="port" type="int">
</argument> </argument>
<argument index="1" name="accepted_hosts" type="StringArray" default="StringArray([])"> <argument index="1" name="ip_type" type="int" default="int.IP_TYPE_ANY">
</argument>
<argument index="2" name="accepted_hosts" type="StringArray" default="StringArray([])">
</argument> </argument>
<description> <description>
Listen on a port, alternatively give a white-list of accepted hosts. Listen on a port using protocol "ip_type", alternatively give a white-list of accepted hosts.
IP_TYPE_IPV4 = IPv4 only
IP_TYPE_IPV6 = IPv6 only
IP_TYPE_ANY = Dual stack (supports both IPv6 and IPv4 connections).
</description> </description>
</method> </method>
<method name="stop"> <method name="stop">