NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
tcpclientconnectionclosestrategy.h
Go to the documentation of this file.
1#ifndef TCPCLIENTCONNECTIONCLOSESTRATEGY_H
2#define TCPCLIENTCONNECTIONCLOSESTRATEGY_H
3
4#include "ipackagestrategy.h"
5
9
10namespace NetSim {
11
15
26public:
31
36
48 void handle(Package package, Host *host) const override;
49};
50
51} // namespace NetSim
52
53#endif // TCPCLIENTCONNECTIONCLOSESTRATEGY_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
Implements the client-side TCP connection close strategy.
Definition tcpclientconnectionclosestrategy.h:25
virtual ~TCPClientConnectionCloseStrategy()=default
Default destructor.
void handle(Package package, Host *host) const override
Handles the package to close the connection.
Definition tcpclientconnectionclosestrategy.cpp:9
TCPClientConnectionCloseStrategy()=default
Default constructor.
Contains the IPackageStrategy interface definition.
Definition logger.h:12