PacketPeerStream

Refreshing Cache...

Inherits: PacketPeer < Reference < Object

Wrapper to use a PacketPeer over a StreamPeer.

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
Default65532
Setterset_input_buffer_max_size(value)
Getterget_input_buffer_max_size()

  • int output_buffer_max_size
Default65532
Setterset_output_buffer_max_size(value)
Getterget_output_buffer_max_size()

Setterset_stream_peer(value)
Getterget_stream_peer()

The wrapped StreamPeer object.

doradoro's advice! Getters and Setters will be deprecated! Avoid their use!

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:35:55. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.