Smallcase folders part 2
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#include "Config/Server/Config.h"
|
#include "config/server/Config.h"
|
||||||
#include "Config/Common/IniParser.h"
|
#include "config/common/IniParser.h"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
namespace config::server
|
namespace config::server
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "Config/Server/BarStyleConfig.h"
|
#include "config/server/BarStyleConfig.h"
|
||||||
#include "Config/Server/DisplayConfig.h"
|
#include "config/server/DisplayConfig.h"
|
||||||
#include "Config/Server/NetworkConfig.h"
|
#include "config/server/NetworkConfig.h"
|
||||||
#include "Config/Server/TextStyleConfig.h"
|
#include "config/server/TextStyleConfig.h"
|
||||||
|
|
||||||
namespace config::server
|
namespace config::server
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "Framebuffer.h"
|
#include "display/graphics/Framebuffer.h"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#include "Display/Graphics/Color.h"
|
#include "display/graphics/Color.h"
|
||||||
#include "Display/Graphics/FramebufferRotation.h"
|
#include "display/graphics/FramebufferRotation.h"
|
||||||
|
|
||||||
namespace display::graphics
|
namespace display::graphics
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "Renderer.h"
|
#include "display/graphics/Renderer.h"
|
||||||
|
|
||||||
namespace display::graphics
|
namespace display::graphics
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "Display/Graphics/Framebuffer.h"
|
#include "display/graphics/Framebuffer.h"
|
||||||
#include "Model/HostRegistry.h"
|
#include "model/HostRegistry.h"
|
||||||
#include "Display/UI/Text/Renderer.h"
|
#include "display/ui/text/Renderer.h"
|
||||||
#include "Display/UI/Header/Header.h"
|
#include "display/ui/header/Header.h"
|
||||||
#include "Display/UI/HostBlock/HostBlock.h"
|
#include "display/ui/hostblock/HostBlock.h"
|
||||||
#include "Display/Graphics/Color.h"
|
#include "display/graphics/Color.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace display::graphics
|
namespace display::graphics
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "Display/UI/Bar/Bar.h"
|
#include "display/ui/bar/Bar.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
namespace display::ui::bar
|
namespace display::ui::bar
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "Display/Graphics/Framebuffer.h"
|
#include "display/graphics/Framebuffer.h"
|
||||||
#include "Display/Graphics/Color.h"
|
#include "display/graphics/Color.h"
|
||||||
#include "Display/UI/Bar/Orientation.h"
|
#include "display/ui/bar/Orientation.h"
|
||||||
#include "Display/UI/Bar/Style.h"
|
#include "display/ui/bar/Style.h"
|
||||||
|
|
||||||
namespace display::ui::bar
|
namespace display::ui::bar
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Display/Graphics/Color.h"
|
#include "display/graphics/Color.h"
|
||||||
#include "Display/UI/Theme/Theme.h"
|
#include "display/ui/theme/Theme.h"
|
||||||
|
|
||||||
namespace display::ui::bar
|
namespace display::ui::bar
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "Display/UI/Header/Header.h"
|
#include "display/ui/header/Header.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
@@ -6,10 +6,10 @@
|
|||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#include "Display/UI/Bar/Orientation.h"
|
#include "display/ui/bar/Orientation.h"
|
||||||
#include "Display/UI/Bar/Style.h"
|
#include "display/ui/bar/Style.h"
|
||||||
#include "Display/UI/Theme/Theme.h"
|
#include "display/ui/theme/Theme.h"
|
||||||
#include "Display/Graphics/Color.h"
|
#include "display/graphics/Color.h"
|
||||||
|
|
||||||
namespace display::ui::header
|
namespace display::ui::header
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "Display/Graphics/Framebuffer.h"
|
#include "display/graphics/Framebuffer.h"
|
||||||
#include "Display/Graphics/Color.h"
|
#include "display/graphics/Color.h"
|
||||||
#include "Display/UI/Text/Renderer.h"
|
#include "display/ui/text/Renderer.h"
|
||||||
|
|
||||||
namespace display::ui::header
|
namespace display::ui::header
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
#include "Display/UI/HostBlock/HostBlock.h"
|
#include "display/ui/hostblock/HostBlock.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
#include "Display/UI/Bar/Orientation.h"
|
#include "display/ui/bar/Orientation.h"
|
||||||
#include "Display/UI/Bar/Style.h"
|
#include "display/ui/bar/Style.h"
|
||||||
#include "Display/UI/Theme/Theme.h"
|
#include "display/ui/theme/Theme.h"
|
||||||
#include "Display/Graphics/Color.h"
|
#include "display/ui/text/Helpers.h"
|
||||||
#include "Display/UI/Text/Helpers.h"
|
#include "display/graphics/Color.h"
|
||||||
|
|
||||||
namespace display::ui::hostblock
|
namespace display::ui::hostblock
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "Display/Graphics/Framebuffer.h"
|
#include "display/graphics/Framebuffer.h"
|
||||||
#include "Display/Graphics/Color.h"
|
#include "display/graphics/Color.h"
|
||||||
#include "Display/UI/Text/Renderer.h"
|
#include "display/ui/text/Renderer.h"
|
||||||
#include "Display/UI/Bar/Bar.h"
|
#include "display/ui/bar/Bar.h"
|
||||||
#include "Metrics/Host.h"
|
#include "metrics/Host.h"
|
||||||
|
|
||||||
namespace display::ui::hostblock
|
namespace display::ui::hostblock
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#include "Display/UI/Text/Fonts.h"
|
#include "display/ui/text/Fonts.h"
|
||||||
#include <ft2build.h>
|
#include <ft2build.h>
|
||||||
#include FT_FREETYPE_H
|
#include FT_FREETYPE_H
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include "Helpers/Paths.h"
|
#include "helpers/Paths.h"
|
||||||
|
|
||||||
namespace display::ui::text
|
namespace display::ui::text
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "Display/UI/Text/Font.h"
|
#include "display/ui/text/Font.h"
|
||||||
#include "Display/UI/Text/Glyph.h"
|
#include "display/ui/text/Glyph.h"
|
||||||
#include "Display/UI/Text/GlyphKey.h"
|
#include "display/ui/text/GlyphKey.h"
|
||||||
|
|
||||||
namespace display::ui::text
|
namespace display::ui::text
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "Display/UI/Text/Helpers.h"
|
#include "display/ui/text/Helpers.h"
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "Display/UI/Text/Renderer.h"
|
#include "display/ui/text/Renderer.h"
|
||||||
#include "Display/UI/Text/UTFDecoder.h"
|
#include "display/ui/text/UTFDecoder.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Display/Graphics/Framebuffer.h"
|
#include "display/graphics/Framebuffer.h"
|
||||||
#include "Display/UI/Text/Fonts.h"
|
#include "display/graphics/Color.h"
|
||||||
#include "Display/UI/Text/Font.h"
|
#include "display/ui/text/Fonts.h"
|
||||||
#include "Display/Graphics/Color.h"
|
#include "display/ui/text/Font.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Display/Graphics/Color.h"
|
#include "display/graphics/Color.h"
|
||||||
|
|
||||||
namespace display::ui::theme
|
namespace display::ui::theme
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
#include "helpers/Paths.h"
|
||||||
|
|
||||||
|
namespace helpers
|
||||||
|
{
|
||||||
|
std::filesystem::path getExecutablePath()
|
||||||
|
{
|
||||||
|
char buf[PATH_MAX];
|
||||||
|
ssize_t len = readlink("/proc/self/exe", buf, sizeof(buf) - 1);
|
||||||
|
if (len == -1)
|
||||||
|
throw std::runtime_error("readlink(/proc/self/exe) failed");
|
||||||
|
|
||||||
|
buf[len] = '\0';
|
||||||
|
return std::filesystem::path(buf);
|
||||||
|
}
|
||||||
|
|
||||||
|
Paths initPaths()
|
||||||
|
{
|
||||||
|
Paths p;
|
||||||
|
p.exe = getExecutablePath();
|
||||||
|
p.exeDir = p.exe.parent_path();
|
||||||
|
p.configDir = p.exeDir / "config";
|
||||||
|
p.assetsDir = p.exeDir / "assets";
|
||||||
|
return p;
|
||||||
|
}
|
||||||
|
} // namespace helpers
|
||||||
|
|||||||
+2
-20
@@ -6,17 +6,6 @@
|
|||||||
|
|
||||||
namespace helpers
|
namespace helpers
|
||||||
{
|
{
|
||||||
std::filesystem::path getExecutablePath()
|
|
||||||
{
|
|
||||||
char buf[PATH_MAX];
|
|
||||||
ssize_t len = readlink("/proc/self/exe", buf, sizeof(buf) - 1);
|
|
||||||
if (len == -1)
|
|
||||||
throw std::runtime_error("readlink(/proc/self/exe) failed");
|
|
||||||
|
|
||||||
buf[len] = '\0';
|
|
||||||
return std::filesystem::path(buf);
|
|
||||||
}
|
|
||||||
|
|
||||||
struct Paths
|
struct Paths
|
||||||
{
|
{
|
||||||
std::filesystem::path exe;
|
std::filesystem::path exe;
|
||||||
@@ -25,13 +14,6 @@ namespace helpers
|
|||||||
std::filesystem::path assetsDir;
|
std::filesystem::path assetsDir;
|
||||||
};
|
};
|
||||||
|
|
||||||
Paths initPaths()
|
std::filesystem::path getExecutablePath();
|
||||||
{
|
Paths initPaths();
|
||||||
Paths p;
|
|
||||||
p.exe = getExecutablePath();
|
|
||||||
p.exeDir = p.exe.parent_path();
|
|
||||||
p.configDir = p.exeDir / "config";
|
|
||||||
p.assetsDir = p.exeDir / "assets";
|
|
||||||
return p;
|
|
||||||
}
|
|
||||||
} // namespace helpers
|
} // namespace helpers
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "Network/Client/Client.h"
|
#include "network/client/Client.h"
|
||||||
#include "Network/Client/Agent.h"
|
#include "network/client/Agent.h"
|
||||||
#include "Metrics/Collector.h"
|
#include "metrics/Collector.h"
|
||||||
#include "Config/Client/Config.h"
|
#include "config/client/Config.h"
|
||||||
#include "Config/Client/NetworkConfig.h"
|
#include "config/client/NetworkConfig.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "Display/Graphics/Framebuffer.h"
|
#include "display/graphics/Framebuffer.h"
|
||||||
#include "Model/HostRegistry.h"
|
#include "model/HostRegistry.h"
|
||||||
#include "Network/Server/Server.h"
|
#include "network/server/Server.h"
|
||||||
#include "Display/Graphics/Renderer.h"
|
#include "display/graphics/Renderer.h"
|
||||||
#include "Config/Server/Config.h"
|
#include "config/server/Config.h"
|
||||||
#include "Config/Server/DisplayConfig.h"
|
#include "config/server/DisplayConfig.h"
|
||||||
#include "Config/Server/NetworkConfig.h"
|
#include "config/server/NetworkConfig.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "Metrics/Collector.h"
|
#include "metrics/Collector.h"
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
namespace metrics
|
namespace metrics
|
||||||
{
|
{
|
||||||
|
|
||||||
Collector::Collector(const std::vector<std::string> &disks) : disks(disks)
|
Collector::Collector(const std::vector<std::vector<std::string>> &disks) : disks(disks)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,8 +33,8 @@ namespace metrics
|
|||||||
prevCpu = curCpu;
|
prevCpu = curCpu;
|
||||||
|
|
||||||
host.memory = readMemory();
|
host.memory = readMemory();
|
||||||
for (const std::string &disk : disks)
|
for (const std::vector<std::string> &disk : disks)
|
||||||
host.disks.push_back(readDisk(disk.c_str()));
|
host.disks.push_back(readDisk(disk));
|
||||||
readLoad(host.load1, host.load5, host.load15);
|
readLoad(host.load1, host.load5, host.load15);
|
||||||
host.uptime = readUptime();
|
host.uptime = readUptime();
|
||||||
host.hostname = readHostname();
|
host.hostname = readHostname();
|
||||||
@@ -126,13 +126,13 @@ namespace metrics
|
|||||||
return memory;
|
return memory;
|
||||||
}
|
}
|
||||||
|
|
||||||
Disk Collector::readDisk(const char *path)
|
Disk Collector::readDisk(const std::vector<std::string> &disk)
|
||||||
{
|
{
|
||||||
struct statvfs vfs;
|
struct statvfs vfs;
|
||||||
if (statvfs(path, &vfs) != 0)
|
if (statvfs(disk.at(1).c_str(), &vfs) != 0)
|
||||||
{
|
{
|
||||||
throw std::runtime_error(
|
throw std::runtime_error(
|
||||||
std::string("statvfs failed for ") + path + ": " +
|
std::string("statvfs failed for ") + disk.at(1).c_str() + ": " +
|
||||||
std::strerror(errno));
|
std::strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,7 +141,8 @@ namespace metrics
|
|||||||
uint64_t used = total - free;
|
uint64_t used = total - free;
|
||||||
|
|
||||||
Disk d;
|
Disk d;
|
||||||
d.name = path;
|
d.name = disk.at(0);
|
||||||
|
d.path = disk.at(1);
|
||||||
d.total = total;
|
d.total = total;
|
||||||
d.free = free;
|
d.free = free;
|
||||||
d.used = used;
|
d.used = used;
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "Metrics/Host.h"
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include "metrics/Host.h"
|
||||||
|
|
||||||
namespace metrics
|
namespace metrics
|
||||||
{
|
{
|
||||||
class Collector
|
class Collector
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Collector(const std::vector<std::string> &disks = {"/"});
|
Collector(const std::vector<std::vector<std::string>> &disks = {{"R", "/"}});
|
||||||
explicit Collector();
|
explicit Collector();
|
||||||
|
|
||||||
Host collect();
|
Host collect();
|
||||||
@@ -24,10 +24,10 @@ namespace metrics
|
|||||||
std::pair<CpuTimes, std::vector<CpuTimes>> prevCpu;
|
std::pair<CpuTimes, std::vector<CpuTimes>> prevCpu;
|
||||||
|
|
||||||
std::pair<CpuTimes, std::vector<CpuTimes>> readCpuTimes();
|
std::pair<CpuTimes, std::vector<CpuTimes>> readCpuTimes();
|
||||||
const std::vector<std::string> disks;
|
const std::vector<std::vector<std::string>> disks;
|
||||||
float cpuLoad(const CpuTimes &prev, const CpuTimes &cur);
|
float cpuLoad(const CpuTimes &prev, const CpuTimes &cur);
|
||||||
Memory readMemory();
|
Memory readMemory();
|
||||||
Disk readDisk(const char *path = "/");
|
Disk readDisk(const std::vector<std::string> &disk = {"R", "/"});
|
||||||
void readLoad(float &l1, float &l5, float &l15);
|
void readLoad(float &l1, float &l5, float &l15);
|
||||||
uint64_t readUptime();
|
uint64_t readUptime();
|
||||||
std::string readHostname();
|
std::string readHostname();
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ namespace metrics
|
|||||||
struct Disk
|
struct Disk
|
||||||
{
|
{
|
||||||
std::string name;
|
std::string name;
|
||||||
|
std::string path;
|
||||||
float used;
|
float used;
|
||||||
float free;
|
float free;
|
||||||
float total;
|
float total;
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#include "Metrics/Host.h"
|
#include "metrics/Host.h"
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
|
||||||
#include "Network/Common/Buffer.h"
|
#include "network/common/Buffer.h"
|
||||||
|
|
||||||
namespace metrics
|
namespace metrics
|
||||||
{
|
{
|
||||||
@@ -51,6 +51,7 @@ namespace metrics
|
|||||||
for (const auto &d : disks)
|
for (const auto &d : disks)
|
||||||
{
|
{
|
||||||
buf.writeString(d.name);
|
buf.writeString(d.name);
|
||||||
|
buf.writeString(d.path);
|
||||||
buf.writeFloat(d.used);
|
buf.writeFloat(d.used);
|
||||||
buf.writeFloat(d.total);
|
buf.writeFloat(d.total);
|
||||||
}
|
}
|
||||||
@@ -91,9 +92,10 @@ namespace metrics
|
|||||||
for (uint8_t i = 0; i < numDisks; ++i)
|
for (uint8_t i = 0; i < numDisks; ++i)
|
||||||
{
|
{
|
||||||
std::string name = buf.readString();
|
std::string name = buf.readString();
|
||||||
|
std::string path = buf.readString();
|
||||||
float used = buf.readFloat();
|
float used = buf.readFloat();
|
||||||
float total = buf.readFloat();
|
float total = buf.readFloat();
|
||||||
h.disks.push_back({name, used, total});
|
h.disks.push_back({name, path, used, total});
|
||||||
}
|
}
|
||||||
|
|
||||||
return h;
|
return h;
|
||||||
|
|||||||
+3
-3
@@ -3,9 +3,9 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#include "Metrics/Cpu.h"
|
#include "metrics/Cpu.h"
|
||||||
#include "Metrics/Memory.h"
|
#include "metrics/Memory.h"
|
||||||
#include "Metrics/Disk.h"
|
#include "metrics/Disk.h"
|
||||||
|
|
||||||
namespace metrics
|
namespace metrics
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "Model/HostRegistry.h"
|
#include "model/HostRegistry.h"
|
||||||
|
|
||||||
namespace model
|
namespace model
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include "Metrics/Host.h"
|
#include "metrics/Host.h"
|
||||||
|
|
||||||
namespace model
|
namespace model
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "Network/Client/Agent.h"
|
#include "network/client/Agent.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
namespace network
|
namespace network
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Network/Client/Client.h"
|
#include "network/client/Client.h"
|
||||||
#include "Metrics/Collector.h"
|
#include "metrics/Collector.h"
|
||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "Network/Client/Client.h"
|
#include "network/client/Client.h"
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include "Metrics/Host.h"
|
#include "metrics/Host.h"
|
||||||
|
|
||||||
namespace network
|
namespace network
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "Network/Common/Buffer.h"
|
#include "network/common/Buffer.h"
|
||||||
|
|
||||||
namespace network
|
namespace network
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#include "Network/Server/Server.h"
|
#include "network/server/Server.h"
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "Metrics/Host.h"
|
#include "metrics/Host.h"
|
||||||
|
|
||||||
namespace network
|
namespace network
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "Model/HostRegistry.h"
|
#include "model/HostRegistry.h"
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|||||||
Reference in New Issue
Block a user