| 22 | namespace ssl = net::ssl; |
| 23 | |
| 24 | void |
| 25 | print_exception(std::exception_ptr eptr) |
| 26 | { |
| 27 | if(eptr) |
| 28 | { |
| 29 | try |
| 30 | { |
| 31 | std::rethrow_exception(eptr); |
| 32 | } |
| 33 | catch(std::exception& e) |
| 34 | { |
| 35 | std::cerr << e.what() << std::endl; |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | net::awaitable<void> |
| 41 | handle_session(ssl::stream<net::ip::tcp::socket> stream) |