Class ServerStreamer<T>
Inheritance
System.Object
ServerStreamer<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Marus.Networking
Assembly: cs.temp.dll.dll
Syntax
public class ServerStreamer<T>
where T : IMessage
Type Parameters
Name | Description |
---|---|
T |
Constructors
ServerStreamer(Action<T>)
Declaration
public ServerStreamer(Action<T> onMessage)
Parameters
Type | Name | Description |
---|---|---|
Action<T> | onMessage |
Fields
_streamHandle
Set this in the Awake() method of the sensor script. Instantiate appropriate client service
Declaration
protected AsyncServerStreamingCall<T> _streamHandle
Field Value
Type | Description |
---|---|
AsyncServerStreamingCall<T> |
mode
Declaration
public ServerStreamer<T>.MessageHandleMode mode
Field Value
Type | Description |
---|---|
ServerStreamer.MessageHandleMode<> |
Properties
IsStreaming
Declaration
public bool IsStreaming { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
HandleNewMessages()
Handle newly received messages from stream Call given callback method with received message
Declaration
public void HandleNewMessages()
StartStream(AsyncServerStreamingCall<T>)
Start streaming given stream
On every message, call given callback method
Declaration
public void StartStream(AsyncServerStreamingCall<T> streamHandle)
Parameters
Type | Name | Description |
---|---|---|
AsyncServerStreamingCall<T> | streamHandle |
StopStream()
Stop stream that is running
Declaration
public void StopStream()