.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/doc/classes/StreamPeerTCP.xml. .. _class_StreamPeerTCP: StreamPeerTCP ============= **Inherits:** :ref:`StreamPeer` **<** :ref:`RefCounted` **<** :ref:`Object` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`bind` **(** :ref:`int` port, :ref:`String` host="*" **)** | +------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`connect_to_host` **(** :ref:`String` host, :ref:`int` port **)** | +------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`disconnect_from_host` **(** **)** | +------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_connected_host` **(** **)** |const| | +------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_connected_port` **(** **)** |const| | +------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_local_port` **(** **)** |const| | +------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Status` | :ref:`get_status` **(** **)** |const| | +------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`poll` **(** **)** | +------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_no_delay` **(** :ref:`bool` enabled **)** | +------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_StreamPeerTCP_Status: .. rst-class:: classref-enumeration enum **Status**: .. _class_StreamPeerTCP_constant_STATUS_NONE: .. rst-class:: classref-enumeration-constant :ref:`Status` **STATUS_NONE** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_StreamPeerTCP_constant_STATUS_CONNECTING: .. rst-class:: classref-enumeration-constant :ref:`Status` **STATUS_CONNECTING** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_StreamPeerTCP_constant_STATUS_CONNECTED: .. rst-class:: classref-enumeration-constant :ref:`Status` **STATUS_CONNECTED** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_StreamPeerTCP_constant_STATUS_ERROR: .. rst-class:: classref-enumeration-constant :ref:`Status` **STATUS_ERROR** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_StreamPeerTCP_method_bind: .. rst-class:: classref-method :ref:`Error` **bind** **(** :ref:`int` port, :ref:`String` host="*" **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StreamPeerTCP_method_connect_to_host: .. rst-class:: classref-method :ref:`Error` **connect_to_host** **(** :ref:`String` host, :ref:`int` port **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StreamPeerTCP_method_disconnect_from_host: .. rst-class:: classref-method void **disconnect_from_host** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StreamPeerTCP_method_get_connected_host: .. rst-class:: classref-method :ref:`String` **get_connected_host** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StreamPeerTCP_method_get_connected_port: .. rst-class:: classref-method :ref:`int` **get_connected_port** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StreamPeerTCP_method_get_local_port: .. rst-class:: classref-method :ref:`int` **get_local_port** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StreamPeerTCP_method_get_status: .. rst-class:: classref-method :ref:`Status` **get_status** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StreamPeerTCP_method_poll: .. rst-class:: classref-method :ref:`Error` **poll** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StreamPeerTCP_method_set_no_delay: .. rst-class:: classref-method void **set_no_delay** **(** :ref:`bool` enabled **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`