Method | Description | |
---|---|---|
ClearLowPriorityQueue ( ) : Task | ||
Disconnect ( ) : void |
Disconnects from remote application and closes channel.
|
|
Dispose ( ) : void |
Calls Disconnect method.
|
|
SendInterval ( ) : void | ||
StartSending ( System.Action action, System.TimeSpan period, |
||
TcpCommunicationChannel ( Socket clientSocket ) : OpenNos.Core.Networking.Communication.Scs.Communication.EndPoints |
Creates a new TcpCommunicationChannel object.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void | ||
SendMessagepublic ( IScsMessage message, byte priority ) : void |
Sends a message to the remote application.
|
|
Startpublic ( ) : void |
Starts the thread to receive messages from socket.
|
Method | Description | |
---|---|---|
ReceiveCallback ( IAsyncResult ar ) : void |
This method is used as callback method in _clientSocket's BeginReceive method. It reveives bytes from socker.
|
|
SendByPriority ( ConcurrentQueue |
||
SendCallback ( IAsyncResult ar ) : void |
protected SendMessagepublic ( IScsMessage message, byte priority ) : void | ||
message | IScsMessage | Message to be sent |
priority | byte | |
return | void |
public static StartSending ( System.Action action, System.TimeSpan period, |
||
action | System.Action | |
period | System.TimeSpan | |
_sendCancellationToken | ||
return | Task |
public TcpCommunicationChannel ( Socket clientSocket ) : OpenNos.Core.Networking.Communication.Scs.Communication.EndPoints | ||
clientSocket | Socket | /// A connected Socket object that is used to communicate over network /// |
return | OpenNos.Core.Networking.Communication.Scs.Communication.EndPoints |