.. 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/ENetPacketPeer.xml. .. _class_ENetPacketPeer: ENetPacketPeer ============== **Inherits:** :ref:`PacketPeer` **<** :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:`int` | :ref:`get_channels` **(** **)** |const| | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_remote_address` **(** **)** |const| | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_remote_port` **(** **)** |const| | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PeerState` | :ref:`get_state` **(** **)** |const| | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_statistic` **(** :ref:`PeerStatistic` statistic **)** | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_active` **(** **)** |const| | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`peer_disconnect` **(** :ref:`int` data=0 **)** | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`peer_disconnect_later` **(** :ref:`int` data=0 **)** | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`peer_disconnect_now` **(** :ref:`int` data=0 **)** | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`ping` **(** **)** | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`ping_interval` **(** :ref:`int` ping_interval **)** | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`reset` **(** **)** | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`send` **(** :ref:`int` channel, :ref:`PackedByteArray` packet, :ref:`int` flags **)** | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_timeout` **(** :ref:`int` timeout, :ref:`int` timeout_min, :ref:`int` timeout_max **)** | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`throttle_configure` **(** :ref:`int` interval, :ref:`int` acceleration, :ref:`int` deceleration **)** | +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_ENetPacketPeer_PeerState: .. rst-class:: classref-enumeration enum **PeerState**: .. _class_ENetPacketPeer_constant_STATE_DISCONNECTED: .. rst-class:: classref-enumeration-constant :ref:`PeerState` **STATE_DISCONNECTED** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_STATE_CONNECTING: .. rst-class:: classref-enumeration-constant :ref:`PeerState` **STATE_CONNECTING** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_STATE_ACKNOWLEDGING_CONNECT: .. rst-class:: classref-enumeration-constant :ref:`PeerState` **STATE_ACKNOWLEDGING_CONNECT** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_STATE_CONNECTION_PENDING: .. rst-class:: classref-enumeration-constant :ref:`PeerState` **STATE_CONNECTION_PENDING** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_STATE_CONNECTION_SUCCEEDED: .. rst-class:: classref-enumeration-constant :ref:`PeerState` **STATE_CONNECTION_SUCCEEDED** = ``4`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_STATE_CONNECTED: .. rst-class:: classref-enumeration-constant :ref:`PeerState` **STATE_CONNECTED** = ``5`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_STATE_DISCONNECT_LATER: .. rst-class:: classref-enumeration-constant :ref:`PeerState` **STATE_DISCONNECT_LATER** = ``6`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_STATE_DISCONNECTING: .. rst-class:: classref-enumeration-constant :ref:`PeerState` **STATE_DISCONNECTING** = ``7`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_STATE_ACKNOWLEDGING_DISCONNECT: .. rst-class:: classref-enumeration-constant :ref:`PeerState` **STATE_ACKNOWLEDGING_DISCONNECT** = ``8`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_STATE_ZOMBIE: .. rst-class:: classref-enumeration-constant :ref:`PeerState` **STATE_ZOMBIE** = ``9`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_ENetPacketPeer_PeerStatistic: .. rst-class:: classref-enumeration enum **PeerStatistic**: .. _class_ENetPacketPeer_constant_PEER_PACKET_LOSS: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_PACKET_LOSS** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_PACKET_LOSS_VARIANCE: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_PACKET_LOSS_VARIANCE** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_PACKET_LOSS_EPOCH: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_PACKET_LOSS_EPOCH** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_ROUND_TRIP_TIME: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_ROUND_TRIP_TIME** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_ROUND_TRIP_TIME_VARIANCE: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_ROUND_TRIP_TIME_VARIANCE** = ``4`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_LAST_ROUND_TRIP_TIME: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_LAST_ROUND_TRIP_TIME** = ``5`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_LAST_ROUND_TRIP_TIME_VARIANCE: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_LAST_ROUND_TRIP_TIME_VARIANCE** = ``6`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_PACKET_THROTTLE: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_PACKET_THROTTLE** = ``7`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_PACKET_THROTTLE_LIMIT: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_PACKET_THROTTLE_LIMIT** = ``8`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_PACKET_THROTTLE_COUNTER: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_PACKET_THROTTLE_COUNTER** = ``9`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_PACKET_THROTTLE_EPOCH: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_PACKET_THROTTLE_EPOCH** = ``10`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_PACKET_THROTTLE_ACCELERATION: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_PACKET_THROTTLE_ACCELERATION** = ``11`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_PACKET_THROTTLE_DECELERATION: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_PACKET_THROTTLE_DECELERATION** = ``12`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PEER_PACKET_THROTTLE_INTERVAL: .. rst-class:: classref-enumeration-constant :ref:`PeerStatistic` **PEER_PACKET_THROTTLE_INTERVAL** = ``13`` .. 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 Constants --------- .. _class_ENetPacketPeer_constant_PACKET_LOSS_SCALE: .. rst-class:: classref-constant **PACKET_LOSS_SCALE** = ``65536`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_PACKET_THROTTLE_SCALE: .. rst-class:: classref-constant **PACKET_THROTTLE_SCALE** = ``32`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_FLAG_RELIABLE: .. rst-class:: classref-constant **FLAG_RELIABLE** = ``1`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_FLAG_UNSEQUENCED: .. rst-class:: classref-constant **FLAG_UNSEQUENCED** = ``2`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_ENetPacketPeer_constant_FLAG_UNRELIABLE_FRAGMENT: .. rst-class:: classref-constant **FLAG_UNRELIABLE_FRAGMENT** = ``8`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_ENetPacketPeer_method_get_channels: .. rst-class:: classref-method :ref:`int` **get_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_ENetPacketPeer_method_get_remote_address: .. rst-class:: classref-method :ref:`String` **get_remote_address** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetPacketPeer_method_get_remote_port: .. rst-class:: classref-method :ref:`int` **get_remote_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_ENetPacketPeer_method_get_state: .. rst-class:: classref-method :ref:`PeerState` **get_state** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetPacketPeer_method_get_statistic: .. rst-class:: classref-method :ref:`float` **get_statistic** **(** :ref:`PeerStatistic` statistic **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetPacketPeer_method_is_active: .. rst-class:: classref-method :ref:`bool` **is_active** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetPacketPeer_method_peer_disconnect: .. rst-class:: classref-method void **peer_disconnect** **(** :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_ENetPacketPeer_method_peer_disconnect_later: .. rst-class:: classref-method void **peer_disconnect_later** **(** :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_ENetPacketPeer_method_peer_disconnect_now: .. rst-class:: classref-method void **peer_disconnect_now** **(** :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_ENetPacketPeer_method_ping: .. rst-class:: classref-method void **ping** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetPacketPeer_method_ping_interval: .. rst-class:: classref-method void **ping_interval** **(** :ref:`int` ping_interval **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetPacketPeer_method_reset: .. rst-class:: classref-method void **reset** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetPacketPeer_method_send: .. rst-class:: classref-method :ref:`Error` **send** **(** :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_ENetPacketPeer_method_set_timeout: .. rst-class:: classref-method void **set_timeout** **(** :ref:`int` timeout, :ref:`int` timeout_min, :ref:`int` timeout_max **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_ENetPacketPeer_method_throttle_configure: .. rst-class:: classref-method void **throttle_configure** **(** :ref:`int` interval, :ref:`int` acceleration, :ref:`int` deceleration **)** .. 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.)`