NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
dnsstrategy.h
Go to the documentation of this file.
1#ifndef DNSSTRATEGY_H
2#define DNSSTRATEGY_H
3
4#include "ipackagestrategy.h"
5
9
10namespace NetSim {
11
14
26public:
32 DNSStrategy() = default;
33
40 virtual ~DNSStrategy() = default;
41
52 void handle(Package package, Host *host) const override;
53};
54} // namespace NetSim
55
56#endif // DNSSTRATEGY_H
Strategy class for handling DNS packages.
Definition dnsstrategy.h:25
virtual ~DNSStrategy()=default
Virtual destructor for cleanup and to allow for polymorphism.
DNSStrategy()=default
Default constructor.
void handle(Package package, Host *host) const override
Handles the DNS package.
Definition dnsstrategy.cpp:9
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