ClientBase now derives from and use std::enable_shared_from_this

This commit is contained in:
eidheim 2017-07-03 15:42:21 +02:00
commit 026f47f195
3 changed files with 94 additions and 92 deletions

View file

@ -10,7 +10,7 @@ class ServerTest : public ServerBase<HTTP> {
public:
ServerTest() : ServerBase<HTTP>::ServerBase(8080) {}
void accept() {}
void accept() override {}
void parse_request_test() {
HTTP socket(*io_service);
@ -59,6 +59,8 @@ public:
return nullptr;
}
void connect(std::shared_ptr<Session> &) override {}
void constructor_parse_test1() {
assert(host == "test.org");
assert(port == 8080);