Software components for data protection, secure storage and transfer
//solution - use blocking queue to ensure all sends come from a single thread
void server_OnOpenShell(object Sender, TElSSHTunnelConnection connection)
Thread writerThread = new Thread(new ThreadStart(writer));
private BlockingCollection<byte> SendQueue = new BlockingCollection<byte>();
internal void Broadcast(byte buffer)
private void writer()
while (Connection != null && Connection.CanSend())
bool hasData = SendQueue.TryTake(out buffer, 1000);
Console.Out.WriteLine("Closing writer thread");
Messages 11 - 18 of 18
First | Prev. | 1 2 | Next | Last
Copyright (c) 2016, /n software, Inc.
As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.