public void ShortSetUrl(string sIp, int iPort) { IPAddress[] ips = Dns.GetHostAddresses(sIp); _sShortIp = ConnectBase.SetIpType(ips[0].ToString()); _sShortPort = iPort; }
public void LongSetUrl(string sIp, string sPort, int type) { IPAddress[] ips = Dns.GetHostAddresses(sIp); _arrIpInfo[type] = new string[] { ConnectBase.SetIpType(ips[0].ToString()), sPort }; }