working commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
|
||||
#ifndef SRVCONFIG_HPP
|
||||
#define SRVCONFIG_HPP
|
||||
|
||||
#include <string>
|
||||
#include <expected>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
class ServConfig {
|
||||
private:
|
||||
std::map<std::string, std::string> kvmap;
|
||||
std::vector<std::string> localnets;
|
||||
std::string tunnelnet;
|
||||
int listenport;
|
||||
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);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user