Server info via http

This commit is contained in:
momo5502
2016-06-05 17:34:55 +02:00
parent 2b5a171668
commit 367b76b8df
6 changed files with 120 additions and 48 deletions

View File

@ -235,6 +235,11 @@ namespace Utils
}
}
json11::Json InfoString::to_json()
{
return this->KeyValuePairs;
}
void InfoString::Parse(std::string buffer)
{
if (buffer[0] == '\\')

View File

@ -37,6 +37,8 @@ namespace Utils
void Dump();
json11::Json to_json();
private:
std::map<std::string, std::string> KeyValuePairs;
void Parse(std::string buffer);