-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatapackage.h
43 lines (36 loc) · 947 Bytes
/
datapackage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef DATAPACKAGE_H
#define DATAPACKAGE_H
#include "Format.h"
#include <QString>
class DataPackage
{
public:
DataPackage();
void setDataLength(u_int data_length);
void setTimeStmp(QString timeStamp);
void setPackageType(int type);
void setPointer(const u_char *pkt_content,int size);
void setInfo(QString info);
QString getDataLength();
QString getTimeStmp();
QString getPackageType();
QString getInfo();
QString getSource();
QString getDestination();
QString getDesMacAddr();
QString getSrcMacAddr();
QString getMacType();
QString getDesIpAddr();
QString getSrcIpAddr();
QString getIpVersion();
public:
const u_char *pkt_content;
protected:
static QString byteToString(u_char *str,int size);
private:
u_int data_length;
QString timeStamp;
QString info;
int package_type;
};
#endif // DATAPACKAGE_H