This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2024_PacketAnalyzer/packetmanager.h
2024-09-06 12:21:24 +03:00

28 lines
714 B
C++

#ifndef PACKETMANAGER_H
#define PACKETMANAGER_H
#include <QObject>
#include <GeneralUtils.h>
#include <EthLayer.h>
#include <IPv4Layer.h>
#include <IPv6Layer.h>
#include <TcpLayer.h>
#include <HttpLayer.h>
#include <Packet.h>
#include <SystemUtils.h>
class PacketManager : public QObject
{
Q_OBJECT
public:
explicit PacketManager(QObject *parent = nullptr);
static QString getProtocolTypeAsString(pcpp::ProtocolType);
static QString printHttpMethod(pcpp::HttpRequestLayer::HttpMethod);
static QStringList getPacketSourceAndDestination(pcpp::Packet*);
static QString getPacketData(pcpp::RawPacket*);
static QString getTcpFlags(pcpp::TcpLayer*);
signals:
};
#endif // PACKETMANAGER_H