File: loop.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 (14 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "pcap.ih"

void Pcap::loop(void *pcapFilterPtr, pcap_handler callback)
{
    pcap_loop(d_pcap, -1, callback, 
              reinterpret_cast<u_char *>(pcapFilterPtr));
}

// Pcap::loop: merely calls pcap_loop: 
//     * 1st argument pointer to the PcapFilter object defining the current
//              Pcap object as data member
//     * 2nd arg: continue until the program ends
//     * 3rd arg: PcapFilter::callback
//     * 4th arg. the address of the PcapFilter object is passed to callback