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