Sync classref with current source

This commit is contained in:
Rémi Verschelde
2018-08-21 00:37:52 +02:00
parent a438389c1f
commit 0ce22eb52b
249 changed files with 10123 additions and 1540 deletions

View File

@@ -0,0 +1,111 @@
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the UPNPDevice.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_UPNPDevice:
UPNPDevice
==========
**Inherits:** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
**Category:** Core
Brief Description
-----------------
UPNP device.
Member Functions
----------------
+------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`add_port_mapping<class_UPNPDevice_add_port_mapping>` **(** :ref:`int<class_int>` port, :ref:`int<class_int>` port_internal=0, :ref:`String<class_string>` desc="", :ref:`String<class_string>` proto="UDP", :ref:`int<class_int>` duration=0 **)** const |
+------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`delete_port_mapping<class_UPNPDevice_delete_port_mapping>` **(** :ref:`int<class_int>` port, :ref:`String<class_string>` proto="UDP" **)** const |
+------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_valid_gateway<class_UPNPDevice_is_valid_gateway>` **(** **)** const |
+------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`String<class_string>` | :ref:`query_external_address<class_UPNPDevice_query_external_address>` **(** **)** const |
+------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Member Variables
----------------
.. _class_UPNPDevice_description_url:
- :ref:`String<class_string>` **description_url** - URL to the device description.
.. _class_UPNPDevice_igd_control_url:
- :ref:`String<class_string>` **igd_control_url** - IDG control URL.
.. _class_UPNPDevice_igd_our_addr:
- :ref:`String<class_string>` **igd_our_addr** - Address of the local machine in the network connecting it to this :ref:`UPNPDevice<class_upnpdevice>`.
.. _class_UPNPDevice_igd_service_type:
- :ref:`String<class_string>` **igd_service_type** - IGD service type.
.. _class_UPNPDevice_igd_status:
- :ref:`IGDStatus<enum_upnpdevice_igdstatus>` **igd_status** - IGD status. See :ref:`IGDStatus<enum_@globalscope_igdstatus>`.
.. _class_UPNPDevice_service_type:
- :ref:`String<class_string>` **service_type** - Service type.
Enums
-----
.. _enum_UPNPDevice_IGDStatus:
enum **IGDStatus**
- **IGD_STATUS_OK** = **0** --- OK.
- **IGD_STATUS_HTTP_ERROR** = **1** --- HTTP error.
- **IGD_STATUS_HTTP_EMPTY** = **2** --- Empty HTTP response.
- **IGD_STATUS_NO_URLS** = **3** --- Returned response contained no URLs.
- **IGD_STATUS_NO_IGD** = **4** --- Not a valid IGD.
- **IGD_STATUS_DISCONNECTED** = **5** --- Disconnected.
- **IGD_STATUS_UNKNOWN_DEVICE** = **6** --- Unknown device.
- **IGD_STATUS_INVALID_CONTROL** = **7** --- Invalid control.
- **IGD_STATUS_MALLOC_ERROR** = **8** --- Memory allocation error.
- **IGD_STATUS_UNKNOWN_ERROR** = **9** --- Unknown error.
Description
-----------
UPNP device. See :ref:`UPNP<class_upnp>` for UPNP discovery and utility functions. Provides low-level access to UPNP control commands. Allows to manage port mappings (port forwarding) and to query network information of the device (like local and external IP address and status). Note that methods on this class are synchronous and block the calling thread.
Member Function Description
---------------------------
.. _class_UPNPDevice_add_port_mapping:
- :ref:`int<class_int>` **add_port_mapping** **(** :ref:`int<class_int>` port, :ref:`int<class_int>` port_internal=0, :ref:`String<class_string>` desc="", :ref:`String<class_string>` proto="UDP", :ref:`int<class_int>` duration=0 **)** const
Adds a port mapping to forward the given external port on this :ref:`UPNPDevice<class_upnpdevice>` for the given protocol to the local machine. See :ref:`UPNP.add_port_mapping<class_UPNP_add_port_mapping>`.
.. _class_UPNPDevice_delete_port_mapping:
- :ref:`int<class_int>` **delete_port_mapping** **(** :ref:`int<class_int>` port, :ref:`String<class_string>` proto="UDP" **)** const
Deletes the port mapping identified by the given port and protocol combination on this device. See :ref:`UPNP.delete_port_mapping<class_UPNP_delete_port_mapping>`.
.. _class_UPNPDevice_is_valid_gateway:
- :ref:`bool<class_bool>` **is_valid_gateway** **(** **)** const
Returns ``true`` if this is a valid IGD (InternetGatewayDevice) which potentially supports port forwarding.
.. _class_UPNPDevice_query_external_address:
- :ref:`String<class_string>` **query_external_address** **(** **)** const
Returns the external IP address of this :ref:`UPNPDevice<class_upnpdevice>` or an empty string.