Solved

Speed Internet

Posted on 2000-04-08
4
315 Views
Last Modified: 2010-04-04
Hi, how to learn (find out) speed Internet and other information on connection.
0
Comment
Question by:powersul
  • 2
4 Comments
 
LVL 3

Expert Comment

by:bryan7
Comment Utility
listenning
0
 
LVL 17

Expert Comment

by:inthe
Comment Utility
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
Comment Utility
null
0
 

Expert Comment

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

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now