EldoS | Feel safer!

Software components for data protection, secure storage and transfer

DTLS samples license key is not set

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#35601
Posted: 01/18/2016 14:32:31
by Ken Ivanov (EldoS Corp.)

Peter,

Right, the delays seems to be caused by a mistake in sample implementation. Specifically, the timer_Tick() event handlers are implemented inefficiently. Please alter their bodies (in both client and server samples, please) in the following way to make the sample application work as planned:

Existing code:

Code
      private void timer_Tick(object sender, System.EventArgs e)
      {
         if (socket.Poll(0, SelectMode.SelectRead))
         {
            server.DataAvailable();
         }
      }


Replace with:

Code
      private void timer_Tick(object sender, System.EventArgs e)
      {
         while (socket.Poll(0, SelectMode.SelectRead))
         {
            server.DataAvailable();
         }
      }


We are sorry for the inconvenience. We will update the samples accordingly.

Ken

Reply

Statistics

Topic viewed 3708 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!