void scanner_PortReply(System.Net.IPEndPoint remoteEndPoint, Metro.Scanning.TcpPortState state) { Counter--; ScanResult r = new ScanResult(); r.RemoteEndPoint = remoteEndPoint; r.State = state; Results.Add(r); this.Invoke(miv); }
private void Scanner_PortReply(IPEndPoint remoteEndPoint, TcpPortState state) { this.counter--; ScanResult r = new ScanResult(); r.RemoteEndPoint = new IPEndPoint(remoteEndPoint.Address, remoteEndPoint.Port); r.State = state; lock (resultsLock) { this.results.Add(r); } this.Invoke(this.updateConnections); }