C# Class Animatroller.ExpanderCommunication.NettyServer

Inheritance: IServerCommunication
Exibir arquivo Open project: HakanL/animatroller Class Usage Examples

Public Methods

Method Description
NettyServer ( int listenPort, Action dataReceivedAction, string>.Action clientConnectedAction ) : System
SendToClientAsync ( string instanceId, string messageType, byte data ) : Task
StartAsync ( ) : System.Threading.Tasks.Task
StopAsync ( ) : System.Threading.Tasks.Task

Private Methods

Method Description
SetInstanceIdChannel ( string instanceId, IChannel channel ) : void

Method Details

NettyServer() public method

public NettyServer ( int listenPort, Action dataReceivedAction, string>.Action clientConnectedAction ) : System
listenPort int
dataReceivedAction Action
clientConnectedAction string>.Action
return System

SendToClientAsync() public method

public SendToClientAsync ( string instanceId, string messageType, byte data ) : Task
instanceId string
messageType string
data byte
return Task

StartAsync() public method

public StartAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

StopAsync() public method

public StopAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task