多线程扫描ip
public void CheckComputer(Object stateinfo)//设置参数 线程池用得到 { IPAddress ip = IPAddress.Parse(strip); try { this.hostname = Dns.GetHostEntry(IPAddress.Parse(strip)).HostName; } catch { this.hostname = "wu fa jian ce "; } //ScanComputer.Form1.GetComputerDnsDelegate d = form1.AddStatusInfoToListBox; form1.AddStatusInfoToListBox(strip,hostname); }
0
85
53KB
2013-04-06
18