Help for this page

Select Code to Download


  1. or download this
    use threads;
    use threads::shared;
    my $sharedTestVar :shared;
    
  2. 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");
    
  3. or download this
    $sharedTestVar=6;
    $DEBUG && msg("init : set sharedTestVar == $sharedTestVar");
    
  4. or download this
    $mcastReaderThread=threads->new(\&doMcastSubscription, $interface,$mca
    +stAddress,$mcastPort); 
    $mcastReaderThread->detach;
    
  5. or download this
    sub doMcastSubscription
    {
    ...
        
        $DEBUG && msg("leaving doMcastSubscription()");
    }
    
  6. or download this
    while(1)
    {
    ...
    ...
    sleep(5);
    }
    
  7. or download this
    sub doMcastSubscription
    {
    ...
        $drop=0;    
        }    
    }
    
  8. or download this
    sub processMessage
    {
    ...
         }     
    ...
    }