Beispiel #1
0
 private void SendDatagram(IPEndPoint endpoint, IPAddress address,
                           string message, bool sticky)
 {
   if (!running) {
     return;
   }
   var dgram = new Datagram(endpoint, address, message, sticky);
   if (messageQueue.Count == 0) {
     dgram.Send();
   }
   messageQueue.Enqueue(dgram);
   queueTimer.Enabled = true;
 }