Ejemplo n.º 1
0
 /// <summary>
 /// HCommAir tool scanning stop
 /// </summary>
 public void Stop()
 {
     // stop scan timer
     ScanTimer.Change(Timeout.Infinite, Timeout.Infinite);
     // drop multicast group
     Client.DropMulticastGroup(_mcIpAddr);
     // set scan status
     IsScanning = false;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// HCommAir tool scanning start
 /// </summary>
 public void Start()
 {
     // clear searched tool list
     SearchTools.Clear();
     // join multicast group
     Client.JoinMulticastGroup(_mcIpAddr);
     // start scan timer
     ScanTimer.Change(0, ScanPeriod);
     // begin receive
     Client.BeginReceive(ClientReceived, null);
     // set scan status
     IsScanning = true;
 }