NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
server.h
Go to the documentation of this file.
1#ifndef SERVER_H
2#define SERVER_H
3
4#include "host.h"
5
9
10namespace NetSim {
11
14
24class Server : public Host {
25public:
31 Server() = default;
32
40 Server(const NetworkCard &networkCard, const QString &domain,
41 const QString &html);
42
48 QString domain() const;
49
59 void receivePackage(Package data) override;
60
66 QString htmlFile() const;
67
68private:
70 QString m_domain{};
71
73 QString m_htmlFile{};
74};
75
76} // namespace NetSim
77
78#endif // SERVER_H
Represents a network host that can communicate through routers.
Definition host.h:32
NetworkCard networkCard() const
Retrieve the network card.
Definition host.cpp:15
Represents a virtual network card with network and physical address capabilities.
Definition networkcard.h:27
Represents a network package.
Definition package.h:28
Represents a Server entity in the simulation.
Definition server.h:24
QString htmlFile() const
Retrieves the HTML content associated with the server.
Definition server.cpp:19
void receivePackage(Package data) override
Processes an incoming data package.
Definition server.cpp:21
QString domain() const
Retrieves the domain associated with the server.
Definition server.cpp:17
Server()=default
Default constructor.
The Host class implements a host in the network.
Definition logger.h:12