00001
00007 #ifndef NETPACKET_H_
00008 #define NETPACKET_H_
00009
00010 #include <pcap.h>
00011 #include <iostream>
00012
00013 using namespace std;
00014
00015 namespace network
00016 {
00017
00026 class NetPacket
00027 {
00028 public:
00030 NetPacket();
00035 NetPacket(string asciidata);
00040 void SetHeadder(const struct pcap_pkthdr *pkt_header);
00042 virtual ~NetPacket();
00043 protected:
00045 string asciidata;
00047 const struct pcap_pkthdr *packetHeader;
00048 };
00049
00050 }
00051
00052 #endif