Ejemplo n.º 1
0
 public void SendPacket(int count, OutPacket pkt)
 {
     while (stopwatch.ElapsedMilliseconds < testDurationInMs)
     {
         int index = random.Next(0, 20);
         Log.Debug("Client {0} sending...", (count * index) + index);
         clients[count, index].Send(pkt.CreatePacket());
         Thread.Sleep(50);
         //Log.Debug(stopwatch.ElapsedMilliseconds);
     }
     stopwatch.Stop();
 }