Class StateSynchronizationBroadcaster
This class observes changes and updates content on a user device.
Inheritance
StateSynchronizationBroadcaster
Inherited Members
Namespace: Microsoft.MixedReality.SpectatorView
Assembly: cs.temp.dll.dll
Syntax
public class StateSynchronizationBroadcaster : NetworkManager<StateSynchronizationBroadcaster>, INetworkManager, ICommandRegistry
Fields
debugLogging
Check to enable debug logging.
Declaration
protected bool debugLogging
Field Value
Type | Description |
---|---|
Boolean |
Port
Port used for sending data.
Declaration
public int Port
Field Value
Type | Description |
---|---|
Int32 |
Properties
HasConnections
True if network connections exist, otherwise false
Declaration
public bool HasConnections { get; }
Property Value
Type | Description |
---|---|
Boolean |
OutputBytesQueued
Returns how many bytes have been queued to send to other devices
Declaration
public int OutputBytesQueued { get; }
Property Value
Type | Description |
---|---|
Int32 |
RemotePort
Declaration
protected override int RemotePort { get; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
Microsoft.MixedReality.SpectatorView.NetworkManager<Microsoft.MixedReality.SpectatorView.StateSynchronizationBroadcaster>.RemotePort
Methods
Awake()
Declaration
protected override void Awake()
Overrides
Microsoft.MixedReality.SpectatorView.NetworkManager<Microsoft.MixedReality.SpectatorView.StateSynchronizationBroadcaster>.Awake()
HandleSyncCommand(SocketEndpoint, String, BinaryReader, Int32)
Declaration
public void HandleSyncCommand(SocketEndpoint endpoint, string command, BinaryReader reader, int remainingDataSize)
Parameters
Type | Name | Description |
---|---|---|
Socket |
endpoint | |
String | command | |
Binary |
reader | |
Int32 | remainingDataSize |
OnConnected(SocketEndpoint)
Declaration
protected override void OnConnected(SocketEndpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
Socket |
endpoint |
Overrides
Microsoft.MixedReality.SpectatorView.NetworkManager<Microsoft.MixedReality.SpectatorView.StateSynchronizationBroadcaster>.OnConnected(Microsoft.MixedReality.SpectatorView.SocketEndpoint)
OnDestroy()
Declaration
protected override void OnDestroy()
Overrides
Microsoft.MixedReality.SpectatorView.NetworkManager<Microsoft.MixedReality.SpectatorView.StateSynchronizationBroadcaster>.OnDestroy()
OnDisconnected(SocketEndpoint)
Declaration
protected override void OnDisconnected(SocketEndpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
Socket |
endpoint |
Overrides
Microsoft.MixedReality.SpectatorView.NetworkManager<Microsoft.MixedReality.SpectatorView.StateSynchronizationBroadcaster>.OnDisconnected(Microsoft.MixedReality.SpectatorView.SocketEndpoint)
OnFrameCompleted()
Called after a frame is completed to send state data to socket end points.
Declaration
public void OnFrameCompleted()
SetupNetworkConnectionManager()
Declaration
protected virtual void SetupNetworkConnectionManager()
Start()
Declaration
protected override void Start()
Overrides
Microsoft.MixedReality.SpectatorView.NetworkManager<Microsoft.MixedReality.SpectatorView.StateSynchronizationBroadcaster>.Start()
UpdateExtension()
Extension method called on update
Declaration
protected virtual void UpdateExtension()