-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetworkInformation.hpp
More file actions
43 lines (37 loc) · 1.07 KB
/
NetworkInformation.hpp
File metadata and controls
43 lines (37 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
** EPITECH PROJECT, 2019
** cpp_rush3_2018
** File description:
** NetworkInformation.hpp
*/
#ifndef CPP_RUSH3_2018_NETWORKINFORMATION_HPP
#define CPP_RUSH3_2018_NETWORKINFORMATION_HPP
#include <vector>
#include "IMonitorModule.hpp"
typedef struct NetworkInterface {
std::string interface_name;
std::string tx_file;
std::string rx_file;
unsigned int last_rx;
unsigned int last_tx;
} NetworkInterface;
class NetworkInformation : public IMonitorModule
{
public:
NetworkInformation();
~NetworkInformation() override = default;
void UpdateContent() override;
Content getContent() override;
std::string getTitle() override;
ModulePosition getPosititon() override;
IMonitorModule *clone() override;
private:
Content _content;
std::string _title;
ModulePosition _position;
std::string _folder;
std::vector<NetworkInterface> _networkInterface;
unsigned int _time_between_each_measure;
unsigned int _counter;
};
#endif //CPP_RUSH3_2018_NETWORKINFORMATION_HPP