Exemplo n.º 1
0
 public IPv4SSL(uint address)
     : this()
 {
     Address       = address;
     A             = (byte)(address >> 24);
     IP            = address.ToIPAddress().ToString();
     RoundtripTime = -1;
     Location      = IPv4Location.Find(IP)[0];
 }
Exemplo n.º 2
0
        private void buttonIPv4DB_Click(object sender, EventArgs e)
        {
            CodeSite.SendCollection("0.255.255.255", IPv4Location.Find(IPAddress.Parse("0.255.255.255")));
            Random r = new Random();

            for (int i = 0; i < 10; i++)
            {
                int       ip  = r.Next(int.MinValue, int.MaxValue);
                IPAddress ipa = ((uint)ip).ToIPAddress();
                CodeSite.SendCollection(ipa.ToString(), IPv4Location.Find(ipa));
            }
        }