Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 protected bool Equals(ShortIP other)
 {
     return(Port == other.Port && string.Equals(IP, other.IP));
 }