56 const IPAddress &destAddress,
bool ack,
bool psh,
bool syn,
92 Port m_destinationPort;
95 quint32 m_startSeq{100};
98 quint32 m_serverSeq{0};
101 quint32 m_amountReceivedData{0};
Represents an IPv4 address.
Definition ipaddress.h:27
Represents a network package.
Definition package.h:28
Represents a network port.
Definition port.h:24
Represents a networking socket for transmitting and receiving data.
Definition socket.h:27
Socket()=default
Default constructor.
void addUDPHeader(Package &data)
Adds a UDP header to the provided data package.
Definition socket.cpp:16
Port sourcePort() const
Simple Getter for source port.
Definition socket.cpp:23
void setSourcePort(const Port &sourcePort)
Setter for the source port.
Definition socket.cpp:24
quint32 serverSeq() const
Simple Getter for server sequence.
Definition socket.cpp:33
Port destinationPort() const
Simple Getter for destination port.
Definition socket.cpp:27
void setDestinationPort(const Port &destinationPort)
Setter for the destination port.
Definition socket.cpp:28
quint32 startSeq() const
Simple Getter for start sequence.
Definition socket.cpp:32
void addTCPHeader(Package &data, const IPAddress &srcAddress, const IPAddress &destAddress, bool ack, bool psh, bool syn, bool fin)
Adds a TCP header to the provided data package.
Definition socket.cpp:7
quint32 amountReceivedData() const
Simple Getter for amount of received data.
Definition socket.cpp:34
Contains the IPAddress class definition.
Contains the Package class definition.
Contains the Port class definition.