Adding reseed support. v1, only http so far.

This commit is contained in:
Meeh 2014-01-31 07:22:11 +01:00
parent d107ef4007
commit 86355cfe09
7 changed files with 223 additions and 45 deletions

12
util.h
View file

@ -12,7 +12,17 @@ namespace util
void OptionParser(int argc, const char* const argv[]);
int GetIntArg(const std::string& strArg, int nDefault);
const char* GetCharArg(const std::string& strArg, const std::string& nDefault);
namespace http
{
std::string httpRequest(const std::string& address);
struct url {
url(const std::string& url_s); // omitted copy, ==, accessors, ...
private:
void parse(const std::string& url_s);
public:
std::string protocol_, host_, path_, query_;
};
}
}
}