Method | Description | |
---|---|---|
ClearLowPriorityQueue ( ) : System.Threading.Tasks.Task | ||
Disconnect ( ) : void |
Disconnects from client and closes underlying communication channel.
|
|
ScsServerClient ( ICommunicationChannel communicationChannel ) : OpenNos.Core.Networking.Communication.Scs.Communication |
Creates a new ScsClient object.
|
|
SendMessage ( IScsMessage message, byte priority ) : void |
Sends a message to the client.
|
Method | Description | |
---|---|---|
OnMessageSent ( IScsMessage message ) : void |
Raises MessageSent event.
|
Method | Description | |
---|---|---|
CommunicationChannel_Disconnected ( object sender, |
Handles Disconnected event of _communicationChannel object.
|
|
CommunicationChannel_MessageReceived ( object sender, |
Handles MessageReceived event of _communicationChannel object.
|
|
CommunicationChannel_MessageSent ( object sender, |
Handles MessageSent event of _communicationChannel object.
|
|
OnDisconnected ( ) : void |
Raises Disconnected event.
|
|
OnMessageReceived ( IScsMessage message ) : void |
Raises MessageReceived event.
|
public ClearLowPriorityQueue ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |
protected OnMessageSent ( IScsMessage message ) : void | ||
message | IScsMessage | Received message |
return | void |
public ScsServerClient ( ICommunicationChannel communicationChannel ) : OpenNos.Core.Networking.Communication.Scs.Communication | ||
communicationChannel | ICommunicationChannel | /// The communication channel that is used by client to send and receive messages /// |
return | OpenNos.Core.Networking.Communication.Scs.Communication |
public SendMessage ( IScsMessage message, byte priority ) : void | ||
message | IScsMessage | Message to be sent |
priority | byte | |
return | void |