Jump to content
Tuts 4 You

[delphi] Get Upload/download Speed


4e4en

Recommended Posts

Posted

Hello,

i would like to know, how i can get actual upload/download speed, like DU Meter.

I searched in MSDN, but i didn't found anything, usefull. Can you provide some info, or atleast function names. The best variant would be with small example.

thanx.

Posted

look into the indy components - free and they have a class for throttling speeds, you should be able to get some ideas from the source

Posted

I didn't found anything usefull ;(

Posted (edited)

Try googling for socket commands.. socket.SendBuf, socket.SendLength, socket.ReceiveLength etc..

use timer to query these properties and you got what you need.. i hope.. in fact i have never tried

to code anything alike, so i might be wrong on this one.. hope it helps!

edit: i found two usefull units on my drive, they are attached (i dont know if its awaiable by default).

Look at function names and properties in ScktComp file, im sure you will figure it out quickly.

BR, ChupaChu!

socket_units.zip

Edited by ChupaChu
Posted

i have one variant, where i should use global-hook for some functions, but i want to avoid that.

And i have seen this done(vithout hooking), in pure basic. I think that pure basic was used with auto it or something like that.

Posted

well somehow it must be aviable from performance counters. due you can see network device usage in process manager.

but even today dumeter uses ring0 drivers.

Posted
i would like to know, how i can get actual upload/download speed, like DU Meter.
I dunno about Delphi, but here's a source in ASM without drivers or stuff:

http://asmsource.8k.com/NetLoad.html

And there are other good sources on that site ! ;)

Posted

Thanx Ufo-Pu55y. GetIfTable thats what i needed.

Now onlt i need to make it running :)

  • 2 weeks later...
Posted
Thanx Ufo-Pu55y. GetIfTable thats what i needed.

Now onlt i need to make it running :)

This is the sample source in Delphi 6.0 that i used for a app i made for myself.

I hope this will help you.

If still needed.

netmon.rar

Posted

excelent sample, thanks for sharing!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...