W3cubDocs

/Godot 3.1

PacketPeerStream

Inherits: PacketPeer < Reference < Object

Category: Core

Brief Description

Wrapper to use a PacketPeer over a StreamPeer.

Properties

int input_buffer_max_size
int output_buffer_max_size
StreamPeer stream_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.

Property Descriptions

int input_buffer_max_size

Setter set_input_buffer_max_size(value)
Getter get_input_buffer_max_size()

int output_buffer_max_size

Setter set_output_buffer_max_size(value)
Getter get_output_buffer_max_size()

StreamPeer stream_peer

Setter set_stream_peer(value)
Getter get_stream_peer()

The wrapped StreamPeer object.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_packetpeerstream.html