File: operatorfun.cc

package info (click to toggle)
natlog 3.01.00-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,912 kB
  • sloc: cpp: 3,691; fortran: 201; sh: 133; ansic: 123; makefile: 110
file content (12 lines) | stat: -rw-r--r-- 448 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#include "pcapfilter.ih"

void PcapFilter::operator()()
{ 
        // The current PcapFilter object is passed as 1st argument to the
        // callback function, so that PcapFilter::callback can access its
        // object's data. the 'callback' cast is used because Pcap has no
        // knowledge about PcapFilter, and only needs to call the C function
        // pcap_loop.

    d_pcap.loop(this, reinterpret_cast<pcap_handler>(callback));
}