Beispiel #1
0
 /// <summary>
 /// Regularly sends a message to all networked SessionAnnouncments.
 /// </summary>
 private static void Broadcast()
 {
     _announcing = true;
     while (_announcing)
     {
         _announcment.Announce();
         // Wait before announcing again.
         Thread.Sleep(BROADCAST_FREQUENCY);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Regularly sends a message to all networked SessionAnnouncments.
 /// </summary>
 private void Broadcast()
 {
     _broadcast = true;
     while (_broadcast)
     {
         _announcer = new SessionAnnouncment(_hostID);
         _announcer.Announce();
         // Wait .35 seconds before announcing again.
         Thread.Sleep(BROADCAST_FREQUENCY);
     }
 }