Jump to content

Current speed D / U Internet

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
jonnymr

jonnymr

    Newbie

  • Members
  • Pip
  • 7 posts
Hello,

I want to create a program that tells me the automatic download and upload speed of the internet.
Not full speed, but the current moment.

Suggestions, code, websites, everything is very welcome.

Thanks

#2
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 765 posts
Hi,

You may want to study routines in IPHLPAPI.DLL unit. Search MSDN to find more details of routines it contains. Fortunately there is a free and open source project that wraps some of these routines to Delphi routines. Check that project here.

I think you will find that project is invaluable to you, since it has a sample project that exactly does what you want, i.e. tells you the size of downloaded and uploaded content for each network interface. However I must remind you that the "speed" information is not really accurate. Because that number is not reflecting the actual speed of your internet connection(s) capable of. It only tells you the amount of uploaded/downloaded content known at a given of time for a particular period of time (usually very small range). Yes, the speed information actually done by polling the amount of traffic and compare it with the result of previous poll.