-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the parameter of set_accept_handler() from endpoint_t to std:…
…:shared_ptr<endpoint_t>. For `set_*_handler()`, capture `std::weak_ptr<endpoint_t>` at test_broker and examples. I think that `weak_ptr` is redundant. Reference is good enough because `shared_ptr` lifetime is kept by `start_session(life_keeper)`. However, `wp.lock()` is easy to detect if the lifetime is over unexpectedly.
- Loading branch information
Showing
18 changed files
with
459 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.