Beispiel #1
0
 public void Scan()
 {
     String host = StringValue.NAHost;
     bool isup = false;
     if (ipaddr != "")
     {
         scnr = new poshsecframework.Network.NetworkBrowser();
         if (scnr.Ping(ipaddr, 1, 100))
         {
             isup = true;
             host = scnr.GetHostname(ipaddr);
         }
         scnr = null;                
     }
     OnScanIPComplete(new ScanEventArgs(ipaddr, host, isup, idx));
 }
Beispiel #2
0
        public void Scan()
        {
            String host = StringValue.NAHost;
            bool   isup = false;

            if (ipaddr != "")
            {
                scnr = new poshsecframework.Network.NetworkBrowser();
                if (scnr.Ping(ipaddr, 1, 100))
                {
                    isup = true;
                    host = scnr.GetHostname(ipaddr);
                }
                scnr = null;
            }
            OnScanIPComplete(new ScanEventArgs(ipaddr, host, isup, idx));
        }