Thread: Internet speed tester

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    30

    Internet speed tester

    Hello everyone, I want to test the speed of an internet connection on windows.
    How do I go about it...?
    I can do sockets.
    Thought of processing ping data from google.com... But is there any other way..?
    If possible, please share the architecture..!

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Do it the well tested and smart way...

    http://www.speedtest.net/

    In code... ping times do not tell you transfer speeds.
    To know that you have to actually send and receive data with a known server and time it.

    Far and away the best plan is to just "let 'er rip"... and plan your software to not time out on slower speeds.
    Last edited by CommonTater; 07-06-2011 at 09:32 AM.

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    30
    I want to code it..
    So basically I'll send and receive data from and to the sevrer program..??
    But how can I calculate the time taken in this cycle??
    Simple time library??

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    You will need timer resolution in milliseconds... on Windows you can do that with the SetTimer Function (Windows). If you are not using GIU mode you will need to setup a timer call back function... Or you can use the GetTickCount Function (Windows); call it once at the beginning, call again at the end and subtract.

    You will then need to connect to a high bandwidth server and download a test file of several megabytes, usually by FTP... time the download, check the size, then do the math... X bytes in Y milliseconds = Speed. ( FTP Sessions (Windows) )

    Of course you'll need to clean up your mess after... delete the file, kill any timers etc, before you exit.

    Your best bet is to sit down and plan your code before starting to write. Look up all the functions, experiment with them as needed... then you can begin final code development. If you get stuck you can post the relevent code sections and we'll see what we can do...

    OR... you could just take the easy way out and ask your end user to enter the speed as a setting.
    Last edited by CommonTater; 07-06-2011 at 11:26 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. internet speed
    By munna_dude in forum C Programming
    Replies: 13
    Last Post: 04-18-2007, 09:41 AM
  2. I've got high speed internet!!!!!
    By PJYelton in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 03-27-2005, 07:57 AM
  3. Speed up any Internet Connection!
    By Stan100 in forum Tech Board
    Replies: 5
    Last Post: 07-13-2004, 10:30 AM
  4. Rogers High Speed Internet Router Setup
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 06-25-2002, 08:39 PM