63 const Port &destinationPort, quint32 seqNumber,
64 quint32 ackNumber,
bool ack,
bool psh,
bool syn,
65 bool fin, quint16 window,
Package &data);
75 static void setFlag(quint16 *flags,
bool set, quint16 position);
91 static quint16 getTCPChecksum(
const QVector<quint8> &sourceAddress,
92 const QVector<quint8> &destinationAddress,
93 quint16 sourcePort, quint16 destinationPort,
94 quint32 seqNumber, quint32 ackNumber,
95 quint16 flags,
const char *data,
Represents an IPv4 address.
Definition ipaddress.h:27
Represents a network package.
Definition package.h:28
Represents a network port.
Definition port.h:24
A static class providing methods for initializing TCP headers and managing TCP flags.
Definition tcp.h:43
static void initHeader(const IPAddress &srcAdress, const IPAddress &destAdress, const Port &sourcePort, const Port &destinationPort, quint32 seqNumber, quint32 ackNumber, bool ack, bool psh, bool syn, bool fin, quint16 window, Package &data)
Initializes a TCP header.
Definition tcp.cpp:6
Contains the IPAddress class definition.
TCPFlag
TCP Flags used for the TCP header.
Definition tcp.h:19
Contains the Package class definition.
Contains the Port class definition.