.. 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/modules/enet/doc_classes/ENetConnection.xml. .. _class_ENetConnection: ENetConnection ============== **Inherits:** :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 +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`bandwidth_limit` **(** :ref:`int` in_bandwidth=0, :ref:`int` out_bandwidth=0 **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`broadcast` **(** :ref:`int` channel, :ref:`PackedByteArray` packet, :ref:`int` flags **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`channel_limit` **(** :ref:`int` limit **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`compress` **(** :ref:`CompressionMode` mode **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`ENetPacketPeer` | :ref:`connect_to_host` **(** :ref:`String` address, :ref:`int` port, :ref:`int` channels=0, :ref:`int` data=0 **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`create_host` **(** :ref:`int` max_peers=32, :ref:`int` max_channels=0, :ref:`int` in_bandwidth=0, :ref:`int` out_bandwidth=0 **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`create_host_bound` **(** :ref:`String` bind_address, :ref:`int` bind_port, :ref:`int` max_peers=32, :ref:`int` max_channels=0, :ref:`int` in_bandwidth=0, :ref:`int` out_bandwidth=0 **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`destroy` **(** **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`dtls_client_setup` **(** :ref:`String` hostname, :ref:`TLSOptions` client_options=null **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`dtls_server_setup` **(** :ref:`TLSOptions` server_options **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`flush` **(** **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_local_port` **(** **)** |const| | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_max_channels` **(** **)** |const| | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`ENetPacketPeer[]` | :ref:`get_peers` **(** **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`pop_statistic` **(** :ref:`HostStatistic` statistic **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`refuse_new_connections` **(** :ref:`bool` refuse **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`service` **(** :ref:`int` timeout=0 **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`socket_send` **(** :ref:`String` destination_address, :ref:`int` destination_port, :ref:`PackedByteArray` packet **)** | +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_ENetConnection_CompressionMode: .. rst-class:: classref-enumeration enum **CompressionMode**: .. _class_ENetConnection_constant_COMPRESS_NONE: .. rst-class:: classref-enumeration-constant :ref:`CompressionMode` **COMPRESS_NONE** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetConnection_constant_COMPRESS_RANGE_CODER: .. rst-class:: classref-enumeration-constant :ref:`CompressionMode` **COMPRESS_RANGE_CODER** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetConnection_constant_COMPRESS_FASTLZ: .. rst-class:: classref-enumeration-constant :ref:`CompressionMode` **COMPRESS_FASTLZ** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetConnection_constant_COMPRESS_ZLIB: .. rst-class:: classref-enumeration-constant :ref:`CompressionMode` **COMPRESS_ZLIB** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetConnection_constant_COMPRESS_ZSTD: .. rst-class:: classref-enumeration-constant :ref:`CompressionMode` **COMPRESS_ZSTD** = ``4`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_ENetConnection_EventType: .. rst-class:: classref-enumeration enum **EventType**: .. _class_ENetConnection_constant_EVENT_ERROR: .. rst-class:: classref-enumeration-constant :ref:`EventType` **EVENT_ERROR** = ``-1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetConnection_constant_EVENT_NONE: .. rst-class:: classref-enumeration-constant :ref:`EventType` **EVENT_NONE** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetConnection_constant_EVENT_CONNECT: .. rst-class:: classref-enumeration-constant :ref:`EventType` **EVENT_CONNECT** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetConnection_constant_EVENT_DISCONNECT: .. rst-class:: classref-enumeration-constant :ref:`EventType` **EVENT_DISCONNECT** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetConnection_constant_EVENT_RECEIVE: .. rst-class:: classref-enumeration-constant :ref:`EventType` **EVENT_RECEIVE** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_ENetConnection_HostStatistic: .. rst-class:: classref-enumeration enum **HostStatistic**: .. _class_ENetConnection_constant_HOST_TOTAL_SENT_DATA: .. rst-class:: classref-enumeration-constant :ref:`HostStatistic` **HOST_TOTAL_SENT_DATA** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetConnection_constant_HOST_TOTAL_SENT_PACKETS: .. rst-class:: classref-enumeration-constant :ref:`HostStatistic` **HOST_TOTAL_SENT_PACKETS** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetConnection_constant_HOST_TOTAL_RECEIVED_DATA: .. rst-class:: classref-enumeration-constant :ref:`HostStatistic` **HOST_TOTAL_RECEIVED_DATA** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetConnection_constant_HOST_TOTAL_RECEIVED_PACKETS: .. rst-class:: classref-enumeration-constant :ref:`HostStatistic` **HOST_TOTAL_RECEIVED_PACKETS** = ``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_ENetConnection_method_bandwidth_limit: .. rst-class:: classref-method void **bandwidth_limit** **(** :ref:`int` in_bandwidth=0, :ref:`int` out_bandwidth=0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_broadcast: .. rst-class:: classref-method void **broadcast** **(** :ref:`int` channel, :ref:`PackedByteArray` packet, :ref:`int` flags **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_channel_limit: .. rst-class:: classref-method void **channel_limit** **(** :ref:`int` limit **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_compress: .. rst-class:: classref-method void **compress** **(** :ref:`CompressionMode` mode **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_connect_to_host: .. rst-class:: classref-method :ref:`ENetPacketPeer` **connect_to_host** **(** :ref:`String` address, :ref:`int` port, :ref:`int` channels=0, :ref:`int` data=0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_create_host: .. rst-class:: classref-method :ref:`Error` **create_host** **(** :ref:`int` max_peers=32, :ref:`int` max_channels=0, :ref:`int` in_bandwidth=0, :ref:`int` out_bandwidth=0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_create_host_bound: .. rst-class:: classref-method :ref:`Error` **create_host_bound** **(** :ref:`String` bind_address, :ref:`int` bind_port, :ref:`int` max_peers=32, :ref:`int` max_channels=0, :ref:`int` in_bandwidth=0, :ref:`int` out_bandwidth=0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_destroy: .. rst-class:: classref-method void **destroy** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_dtls_client_setup: .. rst-class:: classref-method :ref:`Error` **dtls_client_setup** **(** :ref:`String` hostname, :ref:`TLSOptions` client_options=null **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_dtls_server_setup: .. rst-class:: classref-method :ref:`Error` **dtls_server_setup** **(** :ref:`TLSOptions` server_options **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_flush: .. rst-class:: classref-method void **flush** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_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_ENetConnection_method_get_max_channels: .. rst-class:: classref-method :ref:`int` **get_max_channels** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_get_peers: .. rst-class:: classref-method :ref:`ENetPacketPeer[]` **get_peers** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_pop_statistic: .. rst-class:: classref-method :ref:`float` **pop_statistic** **(** :ref:`HostStatistic` statistic **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_refuse_new_connections: .. rst-class:: classref-method void **refuse_new_connections** **(** :ref:`bool` refuse **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_service: .. rst-class:: classref-method :ref:`Array` **service** **(** :ref:`int` timeout=0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetConnection_method_socket_send: .. rst-class:: classref-method void **socket_send** **(** :ref:`String` destination_address, :ref:`int` destination_port, :ref:`PackedByteArray` packet **)** .. 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.)`