internet spp code example

Example 1: wifi test

If you are reading this your wifi is working

Example 2: speed test

//Quintin is 'n klip haha
const string tempfile = "tempfile.tmp";
System.Net.WebClient webClient = new System.Net.WebClient();

Console.WriteLine("Downloading file....");

System.Diagnostics.Stopwatch sw = System.Diagnostics.Stopwatch.StartNew();
webClient.DownloadFile("http://dl.google.com/googletalk/googletalk-setup.exe", tempfile);
sw.Stop();

System.IO.FileInfo fileInfo = new System.IO.FileInfo(tempfile);
long speed = fileInfo.Length / sw.Elapsed.Seconds;

Console.WriteLine("Download duration: {0}", sw.Elapsed);
Console.WriteLine("File size: {0}", fileInfo.Length.ToString("N0"));
Console.WriteLine("Speed: {0} bps ", speed.ToString("N0"));

Console.WriteLine("Press any key to continue...");
Console.ReadLine();

Example 3: ìnternet speed test

Speedtest by Ookla :)

Example 4: speedtest

You can use WebTools, it's an addon that gather the most useful and basic tools 
such as a speedtest, a dictionary, a translator, a youtube convertor and
many others (there are ten of them).
You can access them in two clics, without having to open a new tab 
and without having to search for them !

-Chrome Link : 
https://chrome.google.com/webstore/detail/webtools/ejnboneedfadhjddmbckhflmpnlcomge/

Firefox link : https://addons.mozilla.org/fr/firefox/addon/webtools/

Example 5: internet speed test

search "internet speed test"