Softpedia
 


LINUX CATEGORIES:



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

    Net::Analysis 0.41

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Adam Worrall | More programs
    Perl Artistic License / FREE
    July 27th, 2006, 17:31 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::Analysis description

    Modules for analysing network traffic.

    Net::Analysis are modules for analysing network traffic.

    SYNOPSIS

    Using an existing analyser:

    $ perl -MNet::Analysis -e main help
    $ perl -MNet::Analysis -e main TCP,v=1 dump.tcp - basic TCP info
    $ perl -MNet::Analysis -e main HTTP,v=1 dump.tcp - HTTP stuff
    $ perl -MNet::Analysis -e main Example2,regex=img dump.tcp - run an example


    Writing your own analyser:

    package MyExample;
    use base qw(Net::Analysis::Listener::Base);
    # Listen to events from other modules
    sub tcp_monologue {
    my ($self, $args) = @_;
    my ($mono) = $args->{monologue};
    my $t = $mono->t_elapsed()->as_number();
    my $l = $mono->length();
    # Emit your own event

    $self->emit(name => 'example_event',
    args => { kb_sec => ($t) ? $l/($t*1024) : 'N/A' }
    );
    }
    # Process your own event
    sub example_event {
    my ($self, $args) = @_;
    printf "Bandwidth: .2f KB/secn", $args->{kb_sec};
    }
    1;
    __top

    ABSTRACT

    Net::Analysis is a suite of modules that parse tcpdump files, reconstruct TCP sessions from the packets, and provide a very lightweight framework for writing protocol anaylsers.
    __top

    I wanted a batch version of Ethereal in Perl, so I could:

    - sift through parsed protocols with structured filters
    - write custom reports that mixed events from multiple protocols

    So here it is. Net::Analysis is a stack of protocol handlers that emit, and listen for, events.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    network traffic | network analyzer | analyze traffic | traffic | network | analyzer

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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