4e4en Posted November 4, 2007 Share Posted November 4, 2007 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. Link to comment
Locksmith Posted November 4, 2007 Share Posted November 4, 2007 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 Link to comment
4e4en Posted November 4, 2007 Author Share Posted November 4, 2007 I didn't found anything usefull ;( Link to comment
ChupaChu Posted November 4, 2007 Share Posted November 4, 2007 (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 triedto 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 November 4, 2007 by ChupaChu Link to comment
4e4en Posted November 4, 2007 Author Share Posted November 4, 2007 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
human Posted November 4, 2007 Share Posted November 4, 2007 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
Ufo-Pu55y Posted November 5, 2007 Share Posted November 5, 2007 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 ! Link to comment
ChupaChu Posted November 5, 2007 Share Posted November 5, 2007 Ok i have looked up in a book and found some examples in Chapter 21 - Internet Programming: Sockets and Indy Components.I think this will be useffull to you.21_chapter_Examples_dealingwith_internetandsocketsstuff.ZIP Link to comment
4e4en Posted November 5, 2007 Author Share Posted November 5, 2007 Thanx Ufo-Pu55y. GetIfTable thats what i needed. Now onlt i need to make it running Link to comment
Guest xavier Posted November 18, 2007 Share Posted November 18, 2007 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 Link to comment
ChupaChu Posted November 18, 2007 Share Posted November 18, 2007 excelent sample, thanks for sharing! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now