Added Server::on_error and async client request examples

This commit is contained in:
eidheim 2017-06-20 14:36:05 +02:00
commit 62da9daf87
3 changed files with 26 additions and 10 deletions

View file

@ -99,12 +99,6 @@ namespace SimpleWeb {
};
protected:
class RequestCallback {
public:
bool stop=false;
std::mutex stop_mutex;
};
class Connection {
public:
Connection(const std::string &host, unsigned short port, const Config &config, std::unique_ptr<socket_type> &&socket) :