NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
tcpserverconnectionclosestrategy.h
Go to the documentation of this file.
1#ifndef TCPSERVERCONNECTIONCLOSESTRATEGY_H
2#define TCPSERVERCONNECTIONCLOSESTRATEGY_H
3
4#include "ipackagestrategy.h"
5
9
10namespace NetSim {
11
15
26public:
33
41
52 void handle(Package package, Host *host) const override;
53};
54
55} // namespace NetSim
56
57#endif // TCPSERVERCONNECTIONCLOSESTRATEGY_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 tcpserverconnectionclosestrategy.h:25
virtual ~TCPServerConnectionCloseStrategy()=default
Virtual destructor to ensure correct cleanup for derived classes.
void handle(Package package, Host *host) const override
Handles the TCP connection termination process.
Definition tcpserverconnectionclosestrategy.cpp:8
TCPServerConnectionCloseStrategy()=default
Default constructor.
Contains the IPackageStrategy interface definition.
Definition logger.h:12