in reply to monitoring tcp/ip traffic

For the sake of education, what might the Perl solution look like as far as monitoring network activity is concerned?

Replies are listed 'Best First'.
Re^2: monitoring tcp/ip traffic
by orange (Beadle) on Oct 27, 2009 at 07:49 UTC
    Hi
    morphologically it displays a TV/monitor icon like in this picture:
    http://img198.imageshack.us/img198/3159/lanlight.jpg
    which should light when there is an activity and dim when there is no activity, many times i have used this feature in winxp to get out from some sites which are trying to attack my computer and the antivirus was not able to detect the attack.
    the vb6 program which do the trick is here:
    http://www.dalesplace.net/download/lanlight.php
    for the windows nt4, xp. vista. win7 download:
    http://www.dalesplace.net/download/LanLightNTF.zip
    i want the perl program for windows to do the same work.
    it may be made from two parts: first the monitoring code, second reflecting the result of monitoring to the icon in the sys tray; this second part i think is available through studying the "NotifyIcon.pl" available in the win32gui package
    but the most hard task for me is the first ; i need to study the subject, even for fun only.
    regards