Jump to content
Tuts 4 You

[delphi] Get Upload/download Speed


Recommended Posts


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.


Link to comment

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!


Edited by ChupaChu
Link to comment

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.

Link to comment

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.

Link to comment
  • 2 weeks later...
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.


Link to comment

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...