class_packetpeerstream.rst 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/PacketPeerStream.xml.
  6. .. _class_PacketPeerStream:
  7. PacketPeerStream
  8. ================
  9. **Inherits:** :ref:`PacketPeer<class_PacketPeer>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Wrapper to use a PacketPeer over a StreamPeer.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 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.
  15. \ **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.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  22. | :ref:`int<class_int>` | :ref:`input_buffer_max_size<class_PacketPeerStream_property_input_buffer_max_size>` | ``65532`` |
  23. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  24. | :ref:`int<class_int>` | :ref:`output_buffer_max_size<class_PacketPeerStream_property_output_buffer_max_size>` | ``65532`` |
  25. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  26. | :ref:`StreamPeer<class_StreamPeer>` | :ref:`stream_peer<class_PacketPeerStream_property_stream_peer>` | |
  27. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  28. .. rst-class:: classref-section-separator
  29. ----
  30. .. rst-class:: classref-descriptions-group
  31. Property Descriptions
  32. ---------------------
  33. .. _class_PacketPeerStream_property_input_buffer_max_size:
  34. .. rst-class:: classref-property
  35. :ref:`int<class_int>` **input_buffer_max_size** = ``65532`` :ref:`🔗<class_PacketPeerStream_property_input_buffer_max_size>`
  36. .. rst-class:: classref-property-setget
  37. - |void| **set_input_buffer_max_size**\ (\ value\: :ref:`int<class_int>`\ )
  38. - :ref:`int<class_int>` **get_input_buffer_max_size**\ (\ )
  39. .. container:: contribute
  40. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  41. .. rst-class:: classref-item-separator
  42. ----
  43. .. _class_PacketPeerStream_property_output_buffer_max_size:
  44. .. rst-class:: classref-property
  45. :ref:`int<class_int>` **output_buffer_max_size** = ``65532`` :ref:`🔗<class_PacketPeerStream_property_output_buffer_max_size>`
  46. .. rst-class:: classref-property-setget
  47. - |void| **set_output_buffer_max_size**\ (\ value\: :ref:`int<class_int>`\ )
  48. - :ref:`int<class_int>` **get_output_buffer_max_size**\ (\ )
  49. .. container:: contribute
  50. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  51. .. rst-class:: classref-item-separator
  52. ----
  53. .. _class_PacketPeerStream_property_stream_peer:
  54. .. rst-class:: classref-property
  55. :ref:`StreamPeer<class_StreamPeer>` **stream_peer** :ref:`🔗<class_PacketPeerStream_property_stream_peer>`
  56. .. rst-class:: classref-property-setget
  57. - |void| **set_stream_peer**\ (\ value\: :ref:`StreamPeer<class_StreamPeer>`\ )
  58. - :ref:`StreamPeer<class_StreamPeer>` **get_stream_peer**\ (\ )
  59. The wrapped :ref:`StreamPeer<class_StreamPeer>` object.
  60. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  61. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  62. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  63. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  64. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  65. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  66. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  67. .. |void| replace:: :abbr:`void (No return value.)`