- or download this
use threads;
use threads::shared;
my $sharedTestVar :shared;
- or download this
...
if(! GetOptions ('plugin=s' => \$plugin,'config=s' => \$instanceName,'
+debug' => \$debug, 'interface=s' => \$interface, 'mcastAddress=s' =>
+\$mcastAddress, 'mcastPort=s' => \$mcastPort, 'file=s' => \$snoopf, '
+remotePcapForwarder=s' => \$remotePCF, 'netprobe=s' => \$netprobe))
...
msg("info : plugin \"$plugin\" will be connected");
eval (require "$PALIBDIR/$plugin.pm");
- or download this
$sharedTestVar=6;
$DEBUG && msg("init : set sharedTestVar == $sharedTestVar");
- or download this
$mcastReaderThread=threads->new(\&doMcastSubscription, $interface,$mca
+stAddress,$mcastPort);
$mcastReaderThread->detach;
- or download this
sub doMcastSubscription
{
...
$DEBUG && msg("leaving doMcastSubscription()");
}
- or download this
while(1)
{
...
...
sleep(5);
}
- or download this
sub doMcastSubscription
{
...
$drop=0;
}
}
- or download this
sub processMessage
{
...
}
...
}