.
This commit is contained in:
12
include/Sesson/Sesson.hpp
Normal file
12
include/Sesson/Sesson.hpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
namespace Chattr {
|
||||
class Sesson {
|
||||
public:
|
||||
int send();
|
||||
int recv();
|
||||
|
||||
private:
|
||||
struct Chattr::TCPSocket sock;
|
||||
};
|
||||
}
|
||||
19
include/Utils/ConfigManager.hpp
Normal file
19
include/Utils/ConfigManager.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include <json/json.h>
|
||||
|
||||
namespace Chattr {
|
||||
class ConfigManager {
|
||||
public:
|
||||
struct Config {
|
||||
Json::Value configJsonRoot;
|
||||
std::uint32_t ipVersion = 0;
|
||||
std::uint32_t listenPort = 0;
|
||||
spdlog::level::level_enum logLevel = spdlog::level::off;
|
||||
gsl::czstring logFileName = "";
|
||||
std::uint32_t logfileSize = 0;
|
||||
std::uint32_t logfileCount = 0;
|
||||
};
|
||||
|
||||
static Config load();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user