Added Server::on_error and async client request examples
This commit is contained in:
parent
1d34b7f3de
commit
62da9daf87
3 changed files with 26 additions and 10 deletions
|
|
@ -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) :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue