working commit

This commit is contained in:
Олег Бородин
2026-05-21 14:15:03 +02:00
parent 3f7cfcd234
commit 5a2985f936
9 changed files with 185 additions and 16 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef SRVCONFIG_HPP
#define SRVCONFIG_HPP
#include <string>
#include <expected>
#include <map>
#include <vector>
class ClientConfig {
private:
std::map<std::string, std::string> kvmap;
std::vector<std::string> localnets;
int servport;
std::string servaddr;
public:
std::expected<void, std::string> Read(std::string filename);
int Listenport(void);
std::string Tunnelnet(void);
std::vector<std::string> Localnets(void);
std::expected<void, std::string> Validate(void);
int Servport(void);
std::string Servaddr(void);
};
#endif