Ejemplo n.º 1
0
 public void AddToSendingQueue(Packet packet)
 {
     try
     {
         PacketWrite.Enqueue(packet);
     }
     catch (IndexOutOfRangeException ex)
     {
         Thread.Sleep(40);
         this.AddToSendingQueue(packet);
     }
 }
Ejemplo n.º 2
0
 public void PutPacket(Packet packet)
 {
     try
     {
         PacketRead.Enqueue(packet);
     }
     catch (IndexOutOfRangeException ex)
     {
         Thread.Sleep(40);
         this.PutPacket(packet);
     }
 }