Пример #1
0
        // Конструктор для установки параметров
        public VerifyAddressClass(string address, string blacklistservers)
        {
            string AdvIP;

            try
            {
                IPAddress[] hostAddress = Dns.GetHostAddresses(address);

                this.isInit = true;
                AdvIP       = Convert.ToString(hostAddress[0]);
                hostAddress = null;

                _ip = new exIPAddress(AdvIP);
                VerifyOnServers(blacklistservers);
            } catch (System.Net.Sockets.SocketException errs)
            {
                this.isInit = false;
                MessageBox.Show("[" + errs.ErrorCode + "] " + errs.Message, "Ошибка");
            }
        }
Пример #2
0
 public VerifyIP(exIPAddress address, string[] blacklistservers)
 {
     _ip = address;
     VerifyOnServers(blacklistservers);
 }
Пример #3
0
 public VerifyIP(string address, string[] blacklistservers)
 {
     _ip = new exIPAddress(address);
     VerifyOnServers(blacklistservers);
 }
Пример #4
0
 public VerifyIP(exIPAddress address, string[] blacklistservers)
 {
   _ip = address;
   VerifyOnServers(blacklistservers);
 }
Пример #5
0
 public VerifyIP(string address, string[] blacklistservers)
 {
   _ip = new exIPAddress(address);
   VerifyOnServers(blacklistservers);
 }