IConnectionHandler Interface

Namespace: Improbable.Gdk.CoreSource

Represents a handler for a SpatialOS connection.

Inheritance

IDisposable


Methods

GetWorkerId Source
string GetWorkerId()

Gets the worker ID for this worker.

Returns:
The worker ID.

GetWorkerAttributes Source
List<string> GetWorkerAttributes()

Gets the worker attributes for this worker.

Returns:
The list of worker attributes.

GetMessagesReceived Source
void GetMessagesReceived(ref ViewDiff viewDiff)

Populates the ViewDiff object using the messages received since the last time this was called.

Parameters

GetMessagesToSendContainer Source
MessagesToSend GetMessagesToSendContainer()

Gets the current messages to send container.

Returns:
The messages to send container.

PushMessagesToSend Source
void PushMessagesToSend(MessagesToSend messages, NetFrameStats frameStats)

Adds a set of MessagesToSend to be sent.

Parameters

Notes:
  • The messages may not be sent immediately. This is up to the implementer.

IsConnected Source
bool IsConnected()

Gets a value indicating whether the underlying connection is connected.

Returns:
True if the underlying connection is connected, false otherwise.

Updated about a year ago


IConnectionHandler Interface


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.