class_packetpeerstream.rst 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the PacketPeerStream.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_PacketPeerStream:
  6. PacketPeerStream
  7. ================
  8. **Inherits:** :ref:`PacketPeer<class_PacketPeer>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Wrapper to use a PacketPeer over a StreamPeer.
  10. Description
  11. -----------
  12. 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.
  13. Properties
  14. ----------
  15. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  16. | :ref:`int<class_int>` | :ref:`input_buffer_max_size<class_PacketPeerStream_property_input_buffer_max_size>` | ``65532`` |
  17. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  18. | :ref:`int<class_int>` | :ref:`output_buffer_max_size<class_PacketPeerStream_property_output_buffer_max_size>` | ``65532`` |
  19. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  20. | :ref:`StreamPeer<class_StreamPeer>` | :ref:`stream_peer<class_PacketPeerStream_property_stream_peer>` | |
  21. +-------------------------------------+---------------------------------------------------------------------------------------+-----------+
  22. Property Descriptions
  23. ---------------------
  24. .. _class_PacketPeerStream_property_input_buffer_max_size:
  25. - :ref:`int<class_int>` **input_buffer_max_size**
  26. +-----------+----------------------------------+
  27. | *Default* | ``65532`` |
  28. +-----------+----------------------------------+
  29. | *Setter* | set_input_buffer_max_size(value) |
  30. +-----------+----------------------------------+
  31. | *Getter* | get_input_buffer_max_size() |
  32. +-----------+----------------------------------+
  33. ----
  34. .. _class_PacketPeerStream_property_output_buffer_max_size:
  35. - :ref:`int<class_int>` **output_buffer_max_size**
  36. +-----------+-----------------------------------+
  37. | *Default* | ``65532`` |
  38. +-----------+-----------------------------------+
  39. | *Setter* | set_output_buffer_max_size(value) |
  40. +-----------+-----------------------------------+
  41. | *Getter* | get_output_buffer_max_size() |
  42. +-----------+-----------------------------------+
  43. ----
  44. .. _class_PacketPeerStream_property_stream_peer:
  45. - :ref:`StreamPeer<class_StreamPeer>` **stream_peer**
  46. +----------+------------------------+
  47. | *Setter* | set_stream_peer(value) |
  48. +----------+------------------------+
  49. | *Getter* | get_stream_peer() |
  50. +----------+------------------------+
  51. The wrapped :ref:`StreamPeer<class_StreamPeer>` object.
  52. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  53. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  54. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`