Solved

Speed Internet

Posted on 2000-04-08
4
322 Views
Last Modified: 2010-04-04
Hi, how to learn (find out) speed Internet and other information on connection.
0
Comment
Question by:powersul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Expert Comment

by:bryan7
ID: 2696280
listenning
0
 
LVL 17

Expert Comment

by:inthe
ID: 2696477
Hi
there is the tras component here:
http://www.magsys.co.uk/delphi/ 
that will tell you the number of bytes sent & received on a ras connection (if you started it from your app).
 
also look at Fnugry Netstat Components from www.torry.ru (use one of the mirrors from now as site is in updateing mode)and it is under the LAN section. It displays all TCP/IP data transfers like Netstat, using the SNMP API. And it is freeware with source, a demo is included

maybe also for nt this may help:
http://www.jgsoftware.com/files/perfmon.zip


some other code that may help:

 
Note: Timer1.Interval is 1000 to give KB per second
------------------------------------------------------------------
 
unit Main;
 
interface
 
uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls,
Forms, Dialogs,
  StdCtrls, ExtCtrls,
  Registry;
 
type
  TForm1 = class(TForm)
    Timer1: TTimer;
    ThruPutLbl: TLabel;
    procedure Timer1Timer(Sender: TObject);
  private
    FLastReceived: LongInt;
  public
    { Public declarations }
  end;
 
var
  Form1: TForm1;
 
implementation
 
{$R *.DFM}
 
procedure TForm1.Timer1Timer(Sender: TObject);
var
  Registry: TRegistry;
  ReceiveBuffer: array[0..3] of Byte;
  BytesReceived: LongInt;
  BytesSinceLast: Double;
begin
  Registry := TRegistry.Create;
  with Registry do
    begin
      RootKey := HKEY_DYN_DATA;
      if OpenKey('\PerfStats\StatData', False) then
        begin
          ReadBinaryData('Dial-Up Adapter\BytesRecvd',
ReceiveBuffer, 4);
          BytesReceived := LongInt(ReceiveBuffer);
          if BytesReceived < 0 then
            begin
              BytesReceived := 0;
              FLastReceived := 0;
            end
          else
            begin
              BytesSinceLast := (BytesReceived -
FLastReceived) / 1024;
              ThruPutLbl.Caption := Format('Kb per sec:
%5.3f', [BytesSinceLast]);
              FLastReceived := BytesReceived;
            end;
        end;
    end;
  Registry.Free;
  Registry := nil;
end;
 
end.


Regards Barry
0
 
LVL 17

Accepted Solution

by:
inthe earned 200 total points
ID: 2709835
null
0
 

Expert Comment

by:doncov
ID: 2796195
1)Surf http://www.pbe.com/Kudzu/Articles/...
2)Download packet components WinShoes and look source WinShoePing.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses
Course of the Month10 days, 15 hours left to enroll

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question