PacketPeerStream
Wrapper to use a PacketPeer over a StreamPeer.
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.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
PacketPeerStreamConstructor
public PacketPeerStream();Properties3
InputBufferMaxSizeProperty
public int InputBufferMaxSize { get; set; }OutputBufferMaxSizeProperty
public int OutputBufferMaxSize { get; set; }StreamPeerProperty
public StreamPeer StreamPeer { get; set; }The wrapped StreamPeer object.
Methods6
GetInputBufferMaxSizeint
public int GetInputBufferMaxSize();Returns
intGetOutputBufferMaxSizeint
public int GetOutputBufferMaxSize();Returns
intGetStreamPeerStreamPeer
public StreamPeer GetStreamPeer();Returns
StreamPeerSetInputBufferMaxSizevoid
public void SetInputBufferMaxSize(int maxSizeBytes);| Name | Type | Default |
|---|---|---|
maxSizeBytes | int | — |
SetOutputBufferMaxSizevoid
public void SetOutputBufferMaxSize(int maxSizeBytes);| Name | Type | Default |
|---|---|---|
maxSizeBytes | int | — |
SetStreamPeervoid
public void SetStreamPeer(StreamPeer peer);| Name | Type | Default |
|---|---|---|
peer | StreamPeer | — |
Reckfell Engine documentationBack to top ↑