NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
tcpserverhandshakestrategy.h
Go to the documentation of this file.
1#ifndef TCPSERVERHANDSHAKESTRATEGY_H
2#define TCPSERVERHANDSHAKESTRATEGY_H
3
4#include "ipackagestrategy.h"
5
9
10namespace NetSim {
11
15
26public:
33
40 virtual ~TCPServerHandshakeStrategy() = default;
41
52 void handle(Package package, Host *host) const override;
53};
54
55} // namespace NetSim
56
57#endif // TCPSERVERHANDSHAKESTRATEGY_H
Represents a network host that can communicate through routers.
Definition host.h:32
Interface for defining strategies to handle packages.
Definition ipackagestrategy.h:27
Represents a network package.
Definition package.h:28
Definition tcpserverhandshakestrategy.h:25
void handle(Package package, Host *host) const override
Handles the TCP handshake process.
Definition tcpserverhandshakestrategy.cpp:8
virtual ~TCPServerHandshakeStrategy()=default
Virtual destructor to ensure correct cleanup for derived classes.
TCPServerHandshakeStrategy()=default
Default constructor.
Contains the IPackageStrategy interface definition.
Definition logger.h:12