public List <ShortIP> Discover(ShortIP ip) { TcpClient client = ip.Client; try { Stream s = client.GetStream(); StreamReader sr = new StreamReader(s); StreamWriter sw = new StreamWriter(s) { AutoFlush = true }; var data = sr.ReadToEnd(); s.Close(); } finally { client.Close(); } }
protected bool Equals(ShortIP other) { return(Port == other.Port && string.Equals(IP, other.IP)); }