snark
|
#include <pcap_reader.h>
Inherits noncopyable.
Public Member Functions | |
void | close () |
close | |
bool | eof () const |
return true, if end of file | |
pcap_reader (const std::string &filename="-") | |
constructor, open a pcap file, default stdin | |
const char * | read () |
read and return pointer to the current packet; NULL, if end of file | |
boost::posix_time::ptime | timestamp () const |
return current timestamp | |
~pcap_reader () | |
destructor, close file |
a simple pcap wrapper