Méthode | Description | |
---|---|---|
ClearLowPriorityQueue ( ) : System.Threading.Tasks.Task | ||
Connect ( ) : void |
Connects to server.
|
|
Disconnect ( ) : void |
Disconnects from server. Does nothing if already disconnected.
|
|
Dispose ( ) : void |
Disposes this object and closes underlying connection.
|
|
SendMessage ( IScsMessage message, byte priority ) : void |
Sends a message to the server.
|
Méthode | Description | |
---|---|---|
CreateCommunicationChannel ( ) : ICommunicationChannel |
This method is implemented by derived Classs to create appropriate communication channel.
|
|
Dispose ( bool disposing ) : void | ||
OnConnected ( ) : void |
Raises Connected event.
|
|
OnDisconnected ( ) : void |
Raises Disconnected event.
|
|
OnMessageReceived ( IScsMessage message ) : void |
Raises MessageReceived event.
|
|
OnMessageSent ( IScsMessage message ) : void |
Raises MessageSent event.
|
|
ScsClientBase ( ) : OpenNos.Core.Networking.Communication.Scs.Communication |
Constructor.
|
Méthode | 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.
|
|
PingTimer_Elapsed ( object sender, |
Handles Elapsed event of _pingTimer to send PingMessage messages to server.
|
public ClearLowPriorityQueue ( ) : System.Threading.Tasks.Task | ||
Résultat | System.Threading.Tasks.Task |
protected abstract CreateCommunicationChannel ( ) : ICommunicationChannel | ||
Résultat | ICommunicationChannel |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Résultat | void |
protected OnMessageReceived ( IScsMessage message ) : void | ||
message | IScsMessage | Received message |
Résultat | void |
protected OnMessageSent ( IScsMessage message ) : void | ||
message | IScsMessage | Received message |
Résultat | void |
protected ScsClientBase ( ) : OpenNos.Core.Networking.Communication.Scs.Communication | ||
Résultat | OpenNos.Core.Networking.Communication.Scs.Communication |
public SendMessage ( IScsMessage message, byte priority ) : void | ||
message | IScsMessage | Message to be sent |
priority | byte | |
Résultat | void |