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
Number of guests: 1, registered members: 0,
in total hidden: 0
Copyright (c) 2017, /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.