Files
godot-docs/classes/class_packetpeerstream.rst
Rémi Verschelde 1204e3ea17 Add a warning header to each classref file
To tell potential contributors that they should NOT edit those files but instead should work on the class.xml source of the main Godot repo
2016-02-17 22:04:18 +01:00

40 lines
1.4 KiB
ReStructuredText

.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
.. _class_PacketPeerStream:
PacketPeerStream
================
**Inherits:** :ref:`PacketPeer<class_packetpeer>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
**Category:** Core
Brief Description
-----------------
Wrapper to use a PacketPeer over a StreamPeer.
Member Functions
----------------
+-------+-----------------------------------------------------------------------------------------------------------------------+
| void | :ref:`set_stream_peer<class_PacketPeerStream_set_stream_peer>` **(** :ref:`StreamPeer<class_streampeer>` peer **)** |
+-------+-----------------------------------------------------------------------------------------------------------------------+
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.
Member Function Description
---------------------------
.. _class_PacketPeerStream_set_stream_peer:
- void **set_stream_peer** **(** :ref:`StreamPeer<class_streampeer>` peer **)**
Set the StreamPeer object to be wrapped