Files
stvpn/cliconfig.hpp
Олег Бородин 5a2985f936 working commit
2026-05-21 14:15:03 +02:00

28 lines
621 B
C++

#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