NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
httpstrategy.h
Go to the documentation of this file.
1#ifndef HTTPSTRATEGY_H
2#define HTTPSTRATEGY_H
3
4#include "ipackagestrategy.h"
5
9
10namespace NetSim {
11
14
27public:
33 HTTPStrategy() = default;
34
42 virtual ~HTTPStrategy() = default;
43
54 void handle(Package package, Host *host) const override;
55};
56} // namespace NetSim
57
58#endif // HTTPSTRATEGY_H
Strategy class for handling HTTP packages.
Definition httpstrategy.h:26
HTTPStrategy()=default
Default constructor.
void handle(Package package, Host *host) const override
Manages the HTTP package.
Definition httpstrategy.cpp:9
virtual ~HTTPStrategy()=default
Virtual destructor to ensure correct cleanup and facilitate polymorphism.
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
Contains the IPackageStrategy interface definition.
Definition logger.h:12