ClientBase now derives from and use std::enable_shared_from_this
This commit is contained in:
parent
1992bbb4b4
commit
026f47f195
3 changed files with 94 additions and 92 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue