1. Technology
Send to a Friend via Email
Network traffic monitor
A free network (Internet / intranet) traffic (download / upload) monitor. Network traffic monitor allows you to quickly and easily examine the network usage of the local computer. Full Delphi source code included.
 Win prizes by sharing code!
Do you have some Delphi code you want to share? Are you interested in winning a prize for your work?
Delphi Programming Quickies Contest
 More of this Feature
• Download EXE only
• Download Delphi source
 Join the Discussion
"Post your views, comments, questions and doubts to this article."
Discuss!
 Related Resources
• Internet programming
• Networking with Delphi
• Internet programming tips
• Restrict Internet access
 Elsewhere on the Web
• IPHLPAPI on MSDN

Original idea by Dirk Claessens; GUI, TTraffic class and text by Zarko Gajic.

Network Traffic Monitor is a network analytic tool that examines local area network usage and provides a display of upload and download statistics. The main purpose of the application is monitoring (and counting) the IP traffic between your local area network (LAN) and Internet.

Realtime traffic accounting and monitoring
Network Traffic Monitor provides real-time traffic accounting and monitoring. It is very dynamic, every new (dial-up) connection is registered and monitored, you can use it to count useful download and upload traffic of a computer or extend it to build the traffic accounting system for all computers in your company's LAN.

Upon startup, the application collects current information about the number of network interfaces, of a computer, and starts monitoring download and upload usage of each interface.

About Delphi Programming: Network Traffic Monitor

"Delphi talk"
Network Traffic Monitor provides (for all installed network interfaces) MAC-address, IP-address, octets in/out per second, peak in/out per second, average in/out per second, etc.

The application heavily uses IP Helper API function.

Internet Protocol Helper (IP Helper)
Internet Protocol Helper (IP Helper) assists network administration of the local computer by enabling applications to retrieve information about the network configuration of the local computer, and to modify that configuration.

IP Helper API exposes many functions and structures to retrieve and modify configuration settings for the Transmission Control Protocol/Internet Protocol (TCP/IP) transport on the local computer. By default, Delphi does not provide access to IPHLPAPI.DLL - in terms of converted function calls using Delphi syntax. Interface units are available from the JEDI Web site (http://www.delphi-jedi.org).

NTM

That's it. Don't forget to download the full source code.

I'm not going in code details today - as always if there are any questions or comments please post them on the Delphi Programming Forum.

More freeware Delphi applications
  • Backup Machine
    A free data backup application, with source code. Backup Machine provides the easiest way to backup your critical folders and files - supporting conventional or UNC file names, allowing access to local and network directories.

  • RGB Color Picker
    A free source color sampling application. Use RGB Color Picker to sample colors from your Windows Desktop screen - get the HTML color under the mouse cursor (as you do with the "eyedropper" tool in most paint programs).

  • ScreenThief - stealing screen shots over the Network
    A free network screen shot grabber application, with source code. Learn how to send / receive raw (binary) data (screen shot JPG images) using TCP connections. ScreenThief is a network application designed to "steal" screen shot images from client computers and display them in one central location (server application).

  • and more...

    ~ Zarko Gajic

  • Related Video
    Convert Color Photos to Black and White in Photoshop

    ©2014 About.com. All rights reserved.