123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/PacketPeerStream.xml.
- .. _class_PacketPeerStream:
- PacketPeerStream
- ================
- **Inherits:** :ref:`PacketPeer<class_PacketPeer>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- Wrapper to use a PacketPeer over a StreamPeer.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- PacketStreamPeer provides a wrapper for working using packets over a stream. This allows for using packet based code with StreamPeers. PacketPeerStream implements a custom protocol over the StreamPeer, so the user should not read or write to the wrapped StreamPeer directly.
- \ **Note:** When exporting to Android, make sure to enable the ``INTERNET`` permission in the Android export preset before exporting the project or using one-click deploy. Otherwise, network communication of any kind will be blocked by Android.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
- | :ref:`int<class_int>` | :ref:`input_buffer_max_size<class_PacketPeerStream_property_input_buffer_max_size>` | ``65532`` |
- +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
- | :ref:`int<class_int>` | :ref:`output_buffer_max_size<class_PacketPeerStream_property_output_buffer_max_size>` | ``65532`` |
- +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
- | :ref:`StreamPeer<class_StreamPeer>` | :ref:`stream_peer<class_PacketPeerStream_property_stream_peer>` | |
- +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_PacketPeerStream_property_input_buffer_max_size:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **input_buffer_max_size** = ``65532``
- .. rst-class:: classref-property-setget
- - void **set_input_buffer_max_size** **(** :ref:`int<class_int>` value **)**
- - :ref:`int<class_int>` **get_input_buffer_max_size** **(** **)**
- .. container:: contribute
- There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_PacketPeerStream_property_output_buffer_max_size:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **output_buffer_max_size** = ``65532``
- .. rst-class:: classref-property-setget
- - void **set_output_buffer_max_size** **(** :ref:`int<class_int>` value **)**
- - :ref:`int<class_int>` **get_output_buffer_max_size** **(** **)**
- .. container:: contribute
- There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_PacketPeerStream_property_stream_peer:
- .. rst-class:: classref-property
- :ref:`StreamPeer<class_StreamPeer>` **stream_peer**
- .. rst-class:: classref-property-setget
- - void **set_stream_peer** **(** :ref:`StreamPeer<class_StreamPeer>` value **)**
- - :ref:`StreamPeer<class_StreamPeer>` **get_stream_peer** **(** **)**
- The wrapped :ref:`StreamPeer<class_StreamPeer>` object.
- .. |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.)`
|