PacketPeerStream
Inherits: PacketPeer < RefCounted < Object
Description
Section titled “Description”Wrapper to use a PacketPeer over a StreamPeer.
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 remote deploy. Otherwise, network communication of any kind will be blocked by Android.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| int | input_buffer_max_size |
65532 |
| int | output_buffer_max_size |
65532 |
| StreamPeer | stream_peer |
Property descriptions
Section titled “Property descriptions”input_buffer_max_size
int input_buffer_max_size = 65532
output_buffer_max_size
int output_buffer_max_size = 65532
stream_peer
StreamPeer stream_peer
The wrapped StreamPeer object.
