GitXplorerGitXplorer
N

pcap_cpp

public
4 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
e2f3d29ad08792dc5d78f0faf61d88c303a27cc7

Set correct error when pcap_open_dead fails

NNanXiao committed 5 years ago
Unverified
85c7e3e2954d8b096206f67f2e73843f523ff342

Add examples/packet_len.cpp

NNanXiao committed 5 years ago
Unverified
bc6a43a92e0b5f0cfaf6cdfff00a7838556eadf5

Initial commit

NNanXiao committed 5 years ago

README

The README file for this repository.

pcap_cpp

A header-file-only modern C++ encapsulation of libpcap. It contains 3 main classes:

a) pcap_capturer: live capturing;
b) pcap_parser: parse pcap files;
c) pcap_dumper: dump pcap files.

Usage

Just add pcap_cpp folder into the header file search path, and include pcap_cpp.h. E.g.:

#include "pcap_cpp/pcap_cpp.h"