Example #1
0
 public void SendPackets(IEnumerable <Packet> pkts)
 {
     using (TimedLock.Lock(DcLock))
     {
         if (State != ProtocolState.Disconnected)
         {
             _handler.SendPackets(pkts);
         }
     }
 }
Example #2
0
 public void SendPackets(IEnumerable <Packet> pkts, PacketPriority priority = PacketPriority.Normal)
 {
     using (TimedLock.Lock(DcLock))
     {
         if (State != ProtocolState.Disconnected)
         {
             _handler.SendPackets(pkts, priority);
         }
     }
 }