NAME

Net::Analysis::EventLoop - generate a stream of packets

SYNOPSIS

use Net::Analysis::Dispatcher;
use Net::Analysis::EventLoop;

my ($d)  = Netpacket2::Dispatcher->new();
my ($el) = Netpacket2::EventLoop->new (dispatcher => $d);

... register some listener modules onto the dispatcher ...

$el->loop_file (filename => 'some.tpcdump');

exit 0;

DESCRIPTION

This module provides the glue between the main dispatcher/listener stuff, and the underlying source of packets.

It gets packets (currently via the NetPacket layer on top of Net::Pcap), turns them into Net::Analysis::Packets, and then dispatches them to any listeners who care about 'tcp_packets'.

Current limitations:

  • Only TCP packets are handled

  • Only pcap capture files are processed, no live capture

  • It's not designed to be fast; don't run on GB files unless you're about to go home.

EXPORT

None by default.

SEE ALSO

Net::Analysis::Dispatcher

AUTHOR

Adam B. Worrall, <worrall@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2004 by Adam B. Worrall

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available.