reckfellENGINE

StreamPeerSocket

Abstract base class for interacting with socket streams.

On this page
class StreamPeerSocketReckfellSharpInherits StreamPeer

Abstract base class for interacting with socket streams.

StreamPeerSocket is an abstract base class that defines common behavior for socket-based streams.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Methods3

DisconnectFromHostvoid
# DisconnectFromHost
C#
public void DisconnectFromHost();

Disconnects from host.

GetStatusStreamPeerSocket.Status
# GetStatus
C#
public StreamPeerSocket.Status GetStatus();

Returns the status of the connection.

Returns StreamPeerSocket.Status
PollError
# Poll
C#
public Error Poll();

Polls the socket, updating its state. See StreamPeerSocket.GetStatus.

Returns Error

StreamPeerSocket.Status

ValueDescription
Connected = 2

A status representing a StreamPeerSocket that is connected to a host.

Connecting = 1

A status representing a StreamPeerSocket that is connecting to a host.

Error = 3

A status representing a StreamPeerSocket in error state.

None = 0

The initial status of the StreamPeerSocket. This is also the status after disconnecting.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.