Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Net::Pcap 0.12

    Download button

    No screenshots available
    Downloads: 1,260  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Sebastien Aperghis-Tramoni | More programs
    Perl Artistic License / FREE
    July 27th, 2006, 11:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::Pcap description

    Net::Pcap is an Interface to pcap(3) LBL packet capture library.

    Net::Pcap is an Interface to pcap(3) LBL packet capture library.

    SYNOPSIS

    use Net::Pcap;

    my $err = '';
    my $dev = Net::Pcap::lookupdev($err); # find a device

    # open the device for live listening
    my $pcap = Net::Pcap::open_live($dev, 1024, 1, 0, $err);

    # loop over next 10 packets
    Net::Pcap::loop($pcap, 10, &process_packet, "just for the demo");

    # close the device
    Net::Pcap::close($pcap);

    sub process_packet {
    my($user_data, $header, $packet) = @_;
    # do something ...
    }

    Net::Pcap is a Perl binding to the LBL pcap(3) library. The README for libpcap describes itself as:

    "a system-independent interface for user-level packet capture.
    libpcap provides a portable framework for low-level network
    monitoring. Applications include network statistics collection,
    security monitoring, network debugging, etc."

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl module | pcap interface | packet capture | Net::Pcap | Net | Pcap

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM