class_packetpeerstream.rst 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. Description
  12. -----------
  13. 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.
  14. \ **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.
  15. Properties
  16. ----------
  17. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  18. | :ref:`int<class_int>` | :ref:`input_buffer_max_size<class_PacketPeerStream_property_input_buffer_max_size>` | ``65532`` |
  19. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  20. | :ref:`int<class_int>` | :ref:`output_buffer_max_size<class_PacketPeerStream_property_output_buffer_max_size>` | ``65532`` |
  21. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  22. | :ref:`StreamPeer<class_StreamPeer>` | :ref:`stream_peer<class_PacketPeerStream_property_stream_peer>` | |
  23. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  24. Property Descriptions
  25. ---------------------
  26. .. _class_PacketPeerStream_property_input_buffer_max_size:
  27. - :ref:`int<class_int>` **input_buffer_max_size**
  28. +-----------+----------------------------------+
  29. | *Default* | ``65532`` |
  30. +-----------+----------------------------------+
  31. | *Setter* | set_input_buffer_max_size(value) |
  32. +-----------+----------------------------------+
  33. | *Getter* | get_input_buffer_max_size() |
  34. +-----------+----------------------------------+
  35. ----
  36. .. _class_PacketPeerStream_property_output_buffer_max_size:
  37. - :ref:`int<class_int>` **output_buffer_max_size**
  38. +-----------+-----------------------------------+
  39. | *Default* | ``65532`` |
  40. +-----------+-----------------------------------+
  41. | *Setter* | set_output_buffer_max_size(value) |
  42. +-----------+-----------------------------------+
  43. | *Getter* | get_output_buffer_max_size() |
  44. +-----------+-----------------------------------+
  45. ----
  46. .. _class_PacketPeerStream_property_stream_peer:
  47. - :ref:`StreamPeer<class_StreamPeer>` **stream_peer**
  48. +----------+------------------------+
  49. | *Setter* | set_stream_peer(value) |
  50. +----------+------------------------+
  51. | *Getter* | get_stream_peer() |
  52. +----------+------------------------+
  53. The wrapped :ref:`StreamPeer<class_StreamPeer>` object.
  54. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  55. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  56. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  57. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  58. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  59. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`