NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
NetSim::TCP Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ initHeader()

void TCP::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 
)
static

Initializes a TCP header.

Parameters
srcAdressSource IP address.
destAdressDestination IP address.
sourcePortSource port.
destinationPortDestination port.
seqNumberSequence number.
ackNumberAcknowledgment number.
ackACK flag.
pshPSH flag.
synSYN flag.
finFIN flag.
windowWindow size.
dataThe package data.
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: