Documentation
¶
Overview ¶
Package PacketPeerStream provides methods for working with PacketPeerStream object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsPacketPeer() PacketPeer.Instance
- func (self Instance) AsPacketPeerStream() Instance
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) InputBufferMaxSize() int
- func (self Instance) OutputBufferMaxSize() int
- func (self Instance) SetInputBufferMaxSize(value int)
- func (self Instance) SetOutputBufferMaxSize(value int)
- func (self Instance) SetStreamPeer(value [1]gdclass.StreamPeer)
- func (self Instance) StreamPeer() [1]gdclass.StreamPeer
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Instance ¶
type Instance [1]gdclass.PacketPeerStream
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. [b]Note:[/b] When exporting to Android, make sure to enable the [code]INTERNET[/code] permission in the Android export preset before exporting the project or using one-click deploy. Otherwise, network communication of any kind will be blocked by Android.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsPacketPeer ¶
func (self Instance) AsPacketPeer() PacketPeer.Instance
func (Instance) AsPacketPeerStream ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) InputBufferMaxSize ¶
func (Instance) OutputBufferMaxSize ¶
func (Instance) SetInputBufferMaxSize ¶
func (Instance) SetOutputBufferMaxSize ¶
func (Instance) SetStreamPeer ¶
func (self Instance) SetStreamPeer(value [1]gdclass.StreamPeer)
func (Instance) StreamPeer ¶
func (self Instance) StreamPeer() [1]gdclass.StreamPeer