// Конструктор для установки параметров 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, "Ошибка"); } }
public VerifyIP(exIPAddress address, string[] blacklistservers) { _ip = address; VerifyOnServers(blacklistservers); }
public VerifyIP(string address, string[] blacklistservers) { _ip = new exIPAddress(address); VerifyOnServers(blacklistservers); }