资 源 简 介
PcapHandler version 0.0.1
11/09/2009 - Ronh
About:
This c++ code example is a basic c++ wrapper around libpcap (WinPcap).
libpcap allows users to easily capture packets being sent and received
via network interface.
Usage:
Specific lipcap calls are encapsulated in their own class, PcapHandler,
while users can easily create an instance of the class that initializes
and basically does the dirty work. You will have to derive your own class
though, and define the virtual function int ParsePacket(void). See
main.cpp and main.h for more information.
Compiling and running:
I used the MinGW port of gcc, plus the library WinPcap. Run make in the
project"s root directory.
You will also have to install the WinPcap driver (if running under windows)
to be able to capture packets.
License:
Public domain.
History:
(11/09/2009) 0.0.1
Basic functionality.
Captures TCP/IP packets, extracts thei