NetSim 1.0.0
An educational network simulation software for students
|
A static class providing methods for initializing TCP headers and managing TCP flags. More...
#include <tcp.h>
Static Public Member Functions | |
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. | |
A static class providing methods for initializing TCP headers and managing TCP flags.
The TCP class offers functionalities to work with TCP headers, including the initialization of headers and the computation of the TCP checksum.
|
static |
Initializes a TCP header.
srcAdress | Source IP address. |
destAdress | Destination IP address. |
sourcePort | Source port. |
destinationPort | Destination port. |
seqNumber | Sequence number. |
ackNumber | Acknowledgment number. |
ack | ACK flag. |
psh | PSH flag. |
syn | SYN flag. |
fin | FIN flag. |
window | Window size. |
data | The package data. |